staging: et131x: Align ring_index and fbr[] indicies
authorMark Einon <mark.einon@gmail.com>
Thu, 1 Nov 2012 22:56:43 +0000 (22:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Nov 2012 18:30:19 +0000 (11:30 -0700)
commitf0ada6784f680d844d890f5c240d19c8649594e5
tree21280e59fd3085e2b7a48a37d31243b017ec4eef
parent4ab07c96d2f1a98ef8561bad61c92ffc2652cbda
staging: et131x: Align ring_index and fbr[] indicies

A ring_index value of 0 is being used to reference the free buffer ring
fbr[1] and ring_index=1 is used to reference fbr[0]. Avoid this
confusing referencing by swapping the indicies so that ring_index=0
refers to fbr[0] and vice versa.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c