ibmveth: Remove unused page_offset macro
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 4 Mar 2020 03:54:55 +0000 (19:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2020 01:35:06 +0000 (17:35 -0800)
We already have a function called page_offset(), and this macro
is unused, so just delete it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c

index 1fdbd7649f0fa7c91eb3b539da25d7d900a910bd..96d36ae5049e13ae09b2af251b73d2806da798fa 100644 (file)
@@ -986,8 +986,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)
 {