summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fec_main.c
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2014-11-17 12:51:24 +0300
committerDavid S. Miller <davem@davemloft.net>2014-11-18 23:19:32 +0300
commitc20e599bb57bf12177cd5404d124cae0b6fc7970 (patch)
treeb5ac40a3abdd246698c7f78d6fa45a2d5e663157 /drivers/net/ethernet/freescale/fec_main.c
parent7b487d070a0edea01816135d3b1a9c8f2c069657 (diff)
downloadlinux-c20e599bb57bf12177cd5404d124cae0b6fc7970.tar.xz
net: fec: remove unused return value from swap_buffer()
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec_main.c')
-rw-r--r--drivers/net/ethernet/freescale/fec_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index dbccdf37e2e4..1b6d26b00826 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -287,15 +287,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)