qlcnic: Fix function return error check
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Mon, 24 Feb 2014 13:54:46 +0000 (08:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2014 23:32:39 +0000 (18:32 -0500)
commitfc49beaee2a410402f49fd21c81a37a863b7a9ba
tree20504eccd7186be6a431951a44ab678b258ebc2d
parent22ae27906da3e6f15bf2a55aba3216f717e21671
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>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c