csiostor: Remove superfluous call to pci_disable_msix()
There is no need to call pci_disable_msix() in case the previous call to pci_enable_msix() failed Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
e149fc13db
commit
c6b9bad280
|
@ -529,10 +529,8 @@ csio_enable_msix(struct csio_hw *hw)
|
||||||
csio_reduce_sqsets(hw, cnt - extra);
|
csio_reduce_sqsets(hw, cnt - extra);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (rv > 0) {
|
if (rv > 0)
|
||||||
pci_disable_msix(hw->pdev);
|
|
||||||
csio_info(hw, "Not using MSI-X, remainder:%d\n", rv);
|
csio_info(hw, "Not using MSI-X, remainder:%d\n", rv);
|
||||||
}
|
|
||||||
|
|
||||||
kfree(entries);
|
kfree(entries);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue