mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
22ae27906d
commit
fc49beaee2
|
@ -818,7 +818,7 @@ static int qlcnic_82xx_setup_intr(struct qlcnic_adapter *adapter)
|
|||
qlcnic_disable_multi_tx(adapter);
|
||||
|
||||
err = qlcnic_enable_msi_legacy(adapter);
|
||||
if (!err)
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue