]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbac9deb2d62d0e73237f7198731f05667ae7c33
tree69d58ca7891dbee1dd35eee630b0344f991698a5
parentb78d6953793f8225ef4f33c328e81e7f92392843
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