]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: fec: remove unused return value from swap_buffer()
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 17 Nov 2014 09:51:24 +0000 (10:51 +0100)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:38 +0000 (21:18 -0600)
The return value of swap_buffer() is not used by any caller, thus
remove it.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c

index a269b0278f9c78ac057ce98a7c84bc697df5961d..8b3f04d376db018c92d02ff750204c3a1eaca675 100644 (file)
@@ -291,15 +291,13 @@ 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;
 
        for (i = 0; i < len; i += 4, buf++)
                swab32s(buf);
-
-       return bufaddr;
 }
 
 static void swap_buffer2(void *dst_buf, void *src_buf, int len)