[PATCHv3 8/9] net: fec: remove unused return value from swap_buffer()

Lothar Waßmann LW at KARO-electronics.de
Tue Oct 28 06:23:03 PDT 2014


Signed-off-by: Lothar Waßmann <LW at KARO-electronics.de>
---
 drivers/net/ethernet/freescale/fec_main.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index ddfc57d..e52864c 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -287,7 +287,7 @@ static int fec_enet_get_free_txdesc_num(struct fec_enet_private *fep,
 	return entries > 0 ? entries : entries + txq->tx_ring_size;
 }
 
-static void *swap_buffer(void *bufaddr, int len)
+static void swap_buffer(void *bufaddr, int len)
 {
 	int i;
 	unsigned int *buf = bufaddr;
@@ -295,7 +295,6 @@ static void *swap_buffer(void *bufaddr, int len)
 	for (i = 0; i < len; i += 4, buf++)
 		swab32s(buf);
 
-	return bufaddr;
 }
 
 static void fec_dump(struct net_device *ndev)
-- 
1.7.10.4




More information about the linux-arm-kernel mailing list