]> git.karo-electronics.de Git - karo-tx-linux.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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:38 +0000 (21:18 -0600)
commit823393f749444896a02e81f1fe5cb53cece83373
tree447f9302b038c32bb9a5c3323598cac620ed296a
parentb2ccb3b91d55189fd94efcca1eb732d2eebb6ef3
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