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:
Shahed Shaikh 2014-02-24 08:54:46 -05:00 коммит произвёл David S. Miller
Родитель 22ae27906d
Коммит fc49beaee2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
}