diff options
author | Himanshu Madhani <himanshu.madhani@qlogic.com> | 2013-04-16 22:11:10 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-17 09:15:29 +0400 |
commit | 361cd29cf9363505c2a35bbf9a034a22feebfb07 (patch) | |
tree | 56fd0d2c1df61a8fd113a1d7a7d3feed77043963 /drivers | |
parent | 97599dc792b45b1669c3cdb9a4b365aad0232f65 (diff) | |
download | linux-361cd29cf9363505c2a35bbf9a034a22feebfb07.tar.xz |
qlcnic: fix beaconing test for 82xx adapter
o Commit 319ecf121e1da3d75dd1bde32fed255532e61797
("qlcnic: 83xx sysfs routines") introduced regression
for beaconing test while refactoring 82xx code. This patch is to
revert code to fix beaconing test for 82xx adapter.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c index 987fb6f8adc3..5ef328af61d0 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c @@ -200,10 +200,10 @@ beacon_err: } err = qlcnic_config_led(adapter, b_state, b_rate); - if (!err) + if (!err) { err = len; - else ahw->beacon_state = b_state; + } if (test_and_clear_bit(__QLCNIC_DIAG_RES_ALLOC, &adapter->state)) qlcnic_diag_free_res(adapter->netdev, max_sds_rings); |