diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-07-27 20:31:16 +0200 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-08-24 21:10:18 +0200 |
commit | f16aeea0e679d5fd43fc02e99569c52d77d5e5d3 (patch) | |
tree | a22f669f90d69705f56718130744d196876b95c7 /drivers/net/ethernet/sfc/ethtool.c | |
parent | sfc: Stash header offsets for TSO in struct tso_state (diff) | |
download | linux-f16aeea0e679d5fd43fc02e99569c52d77d5e5d3.tar.xz linux-f16aeea0e679d5fd43fc02e99569c52d77d5e5d3.zip |
sfc: Change state names to be clearer, and comment them
STATE_INIT and STATE_FINI are equivalent and represent incompletely
initialised states; combine them as STATE_UNINIT.
Rename STATE_RUNNING to STATE_READY, to avoid confusion with
netif_running() and IFF_RUNNING.
The comments do not quite match current usage, but this will be
corrected in subsequent fixes.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/ethtool.c')
-rw-r--r-- | drivers/net/ethernet/sfc/ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c index 8cba2df82b18..5d0e2a3241b1 100644 --- a/drivers/net/ethernet/sfc/ethtool.c +++ b/drivers/net/ethernet/sfc/ethtool.c @@ -531,7 +531,7 @@ static void efx_ethtool_self_test(struct net_device *net_dev, ASSERT_RTNL(); - if (efx->state != STATE_RUNNING) { + if (efx->state != STATE_READY) { rc = -EIO; goto fail1; } |