]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: simplify loop counter handling in swap_buffer()
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 17 Nov 2014 09:51:23 +0000 (10:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 20:19:32 +0000 (15:19 -0500)
commite227119f34ead66650f5ecdb83502c6cbbe31d4c
tree8dd7a7e0592bc8309ffeb6883aa3296fb7e9475c
parenta3e41cf7355cb6479e503eb5b7ac942f05799220
net: fec: simplify loop counter handling in swap_buffer()

Eliminate the DIV_ROUND_UP() and change the loop counter increment to
4 instead. This results in saving 6 instructions in the functions
assembly code.

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