drivers/net/tokenring: Use status field rather than state field
authorJulia Lawall <julia@diku.dk>
Fri, 7 Aug 2009 20:47:33 +0000 (20:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 04:54:54 +0000 (21:54 -0700)
commit582b95c2709cd58913ec2a31b0266ba0aa67b03d
tree69d58ca7891dbee1dd35eee630b0344f991698a5
parent176edd52366d59350717b0bf6865b1d7ece156cc
drivers/net/tokenring: Use status field rather than state field

In general in this file, it is the status field, not the state field, that
contains values like OPEN and CLOSED.  Indeed, in the first error case, it
is the field status that is initialized.  I have thus assumed that all of
the error handling code should be the same, and moved it to the end of the
function to emphasize its commonality.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tokenring/smctr.c