Skip to contentSkip to conversation

be2net: Remove unused OFFSET_IN_PAGE() macro

PATCH Applied Roland Dreier 2 participants 3 messages Mar 1, 2012 – Mar 5, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 be2net: Remove unused OFFSET_IN_PAGE() macro

From: Roland Dreier <[email protected]>

---
 drivers/net/ethernet/emulex/benet/be.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/net/ethernet/emulex/benet/be.h +0 -4
index cbdec25..cca5c0e 100644
@@ -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)
Signature · 1 line
1.7.9