bnx2x: fix double init check
authorChas Williams <3chas3@gmail.com>
Tue, 8 Dec 2015 14:48:24 +0000 (09:48 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Dec 2015 21:02:33 +0000 (22:02 +0100)
commit537ae1c996c824a9108c8dc05d236bd79ecae2c9
tree0bc18dded4432bda1943531cc5b0fef6fe11dd13
parent8b8c7a35dba385d384924719c7551b5d9138b803
bnx2x: fix double init check

Check sc->state to prevent double init.
If the link is up, then the driver cannot be stopped and started
successfully.  Instead of checking the link status, use the driver's
state.

Signed-off-by: Chas Williams <3chas3@gmail.com>
drivers/net/bnx2x/bnx2x.c