Skip to contentSkip to conversation

ibmveth: Remove unused page_offset macro

PATCH Applied Matthew Wilcox 2 participants 2 messages Mar 4, 2020 – Mar 6, 2020

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

PATCH 1/1 ibmveth: Remove unused page_offset macro

From: Matthew Wilcox (Oracle) <[email protected]>

We already have a function called page_offset(), and this macro is unused, so just delete it.

drivers/net/ethernet/ibm/ibmveth.c +0 -2
index 84121aab7ff1..4cad94ac9bc9 100644
@@ -978,8 +978,6 @@ static int ibmveth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 	return -EOPNOTSUPP;
 }
 
-#define page_offset(v) ((unsigned long)(v) & ((1 << 12) - 1))
-
 static int ibmveth_send(struct ibmveth_adapter *adapter,
 			union ibmveth_buf_desc *descs, unsigned long mss)
 {