From: Lothar Waßmann Date: Mon, 17 Nov 2014 09:51:24 +0000 (+0100) Subject: net: fec: remove unused return value from swap_buffer() X-Git-Tag: v5.15~16721^2~177^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c20e599bb57bf12177cd5404d124cae0b6fc7970;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index dbccdf3..1b6d26b 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)