forcedeth: remove redudant assignments in xmit
authorZhu Yanjun <[email protected]>
Sat, 11 Nov 2017 02:10:00 +0000 (21:10 -0500)
committerDavid S. Miller <[email protected]>
Mon, 13 Nov 2017 01:40:19 +0000 (10:40 +0900)
commit0d728b844c2dd8dd3875ed304eee43967c5d14f6
tree37f4a74f34fc52147e5b855c21a1985138c122e0
parent6afce196236c353819526a1c41fffb6d660eb2ef
forcedeth: remove redudant assignments in xmit

In xmit process, the variables are set many times. In fact,
it is enough for these variables to be set once.
After a long time test, the throughput performance is better
than before.

CC: Srinivas Eeda <[email protected]>
CC: Joe Jin <[email protected]>
CC: Junxiao Bi <[email protected]>
Signed-off-by: Zhu Yanjun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/nvidia/forcedeth.c