diff options
author | Shahed Shaikh <shahed.shaikh@qlogic.com> | 2014-02-24 08:54:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-25 18:32:39 -0500 |
commit | fc49beaee2a410402f49fd21c81a37a863b7a9ba (patch) | |
tree | 20504eccd7186be6a431951a44ab678b258ebc2d /drivers/net/ethernet/qlogic | |
parent | 22ae27906da3e6f15bf2a55aba3216f717e21671 (diff) |
qlcnic: Fix function return error check
Driver was treating -ve return value as success in case of
qlcnic_enable_msi_legacy() failure
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index ba78c7481fa3..149c4b6d340b 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |||
@@ -818,7 +818,7 @@ static int qlcnic_82xx_setup_intr(struct qlcnic_adapter *adapter) | |||
818 | qlcnic_disable_multi_tx(adapter); | 818 | qlcnic_disable_multi_tx(adapter); |
819 | 819 | ||
820 | err = qlcnic_enable_msi_legacy(adapter); | 820 | err = qlcnic_enable_msi_legacy(adapter); |
821 | if (!err) | 821 | if (err) |
822 | return err; | 822 | return err; |
823 | } | 823 | } |
824 | } | 824 | } |