diff mbox

be2net: Remove unused OFFSET_IN_PAGE() macro

Message ID 1330584046-3938-1-git-send-email-roland@kernel.org
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Roland Dreier March 1, 2012, 6:40 a.m. UTC
From: Roland Dreier <roland@purestorage.com>

Signed-off-by: Roland Dreier <roland@purestorage.com>
---
 drivers/net/ethernet/emulex/benet/be.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

Comments

David Miller March 1, 2012, 10:22 p.m. UTC | #1
From: Roland Dreier <roland@kernel.org>
Date: Wed, 29 Feb 2012 22:40:46 -0800

> From: Roland Dreier <roland@purestorage.com>
> 
> Signed-off-by: Roland Dreier <roland@purestorage.com>

Applied.

I assume you are aware of the same issue in the be2iscsi driver.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Roland Dreier March 5, 2012, 8:39 p.m. UTC | #2
On Thu, Mar 1, 2012 at 2:22 PM, David Miller <davem@davemloft.net> wrote:
> I assume you are aware of the same issue in the be2iscsi driver.

Yeah, patch already sent:
http://www.spinics.net/lists/linux-scsi/msg57754.html

but the SCSI maintainer is not as responsive as the networking one ;)

 - R.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h
index cbdec25..cca5c0e 100644
--- a/drivers/net/ethernet/emulex/benet/be.h
+++ b/drivers/net/ethernet/emulex/benet/be.h
@@ -428,10 +428,6 @@  extern const struct ethtool_ops be_ethtool_ops;
 		((u32)((((size_t)(_address) & (PAGE_SIZE_4K - 1)) + 	\
 			(size) + (PAGE_SIZE_4K - 1)) >> PAGE_SHIFT_4K))
 
-/* Byte offset into the page corresponding to given address */
-#define OFFSET_IN_PAGE(addr)						\
-		 ((size_t)(addr) & (PAGE_SIZE_4K-1))
-
 /* Returns bit offset within a DWORD of a bitfield */
 #define AMAP_BIT_OFFSET(_struct, field)  				\
 		(((size_t)&(((_struct *)0)->field))%32)