[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200304035455.GA29971@bombadil.infradead.org>
Date: Tue, 3 Mar 2020 19:54:55 -0800
From: Matthew Wilcox <willy@...radead.org>
To: Thomas Falcon <tlfalcon@...ux.ibm.com>, netdev@...r.kernel.org
Subject: [PATCH] ibmveth: Remove unused page_offset macro
From: Matthew Wilcox (Oracle) <willy@...radead.org>
We already have a function called page_offset(), and this macro
is unused, so just delete it.
Signed-off-by: Matthew Wilcox (Oracle) <willy@...radead.org>
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index 84121aab7ff1..4cad94ac9bc9 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -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)
{
Powered by blists - more mailing lists