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)
commit97bc477cbc3d63f2a29c2c81031434b3a082f44c
tree36d4993d7f48a5460f360ab6e976a5a214296ecb
parent60d3f9827ca455e7272681d67a37137c328d7012
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