]> git.baikalelectronics.ru Git - kernel.git/commit
korina: fix handling tx_chain_tail
authorPhil Sutter <n0-1@freewrt.org>
Thu, 15 Jan 2009 05:50:41 +0000 (21:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2009 16:28:20 +0000 (08:28 -0800)
commit2d0ca75054c044603a3bac9864fe0cb07e5b802b
tree36d4993d7f48a5460f360ab6e976a5a214296ecb
parent8daf3dd4d4998336a7e9949b9c0d899dd6331527
korina: fix handling tx_chain_tail

Originally this must have been a rewrite error when introducing
'chain_index'. But the original driver did not use the previous chain
item everywhere: when altering the address tx_chain_tail points to, it
should move forward, not backwards.
Also this is not an "index" but rather the penultimate element in the
chain, so rename it accordingly.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/korina.c