]> git.baikalelectronics.ru Git - kernel.git/commit
net/sonic: Remove redundant next_tx variable
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 15 Feb 2020 21:03:32 +0000 (08:03 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:48:22 +0000 (19:48 -0800)
commit774851b0378df8f5e0350faec0012e6efb9f8fe4
treebbacc02a53d373cce81f6f6cea864d45e5d5f12b
parent9fa520877d70632bfc6f5c7d21b6ed6b3475d805
net/sonic: Remove redundant next_tx variable

The eol_tx variable is the one that matters to the tx algorithm because
packets are always placed at the end of the list. The next_tx variable
just confuses things so remove it.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/sonic.c
drivers/net/ethernet/natsemi/sonic.h