diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2014-08-18 02:01:49 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-16 12:09:56 -0400 |
commit | c6b9bad280674a51f42929fc1fe6964ac3528dc8 (patch) | |
tree | fea89809a1e61daaec410345b3f2fc11361065ec | |
parent | e149fc13dbc1c113e667e7f5bd45288853bdf6bb (diff) |
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>
-rw-r--r-- | drivers/scsi/csiostor/csio_isr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/csiostor/csio_isr.c b/drivers/scsi/csiostor/csio_isr.c index 7ee9777ae2c5..91ba91dac675 100644 --- a/drivers/scsi/csiostor/csio_isr.c +++ b/drivers/scsi/csiostor/csio_isr.c | |||
@@ -529,10 +529,8 @@ csio_enable_msix(struct csio_hw *hw) | |||
529 | csio_reduce_sqsets(hw, cnt - extra); | 529 | csio_reduce_sqsets(hw, cnt - extra); |
530 | } | 530 | } |
531 | } else { | 531 | } else { |
532 | if (rv > 0) { | 532 | if (rv > 0) |
533 | pci_disable_msix(hw->pdev); | ||
534 | csio_info(hw, "Not using MSI-X, remainder:%d\n", rv); | 533 | csio_info(hw, "Not using MSI-X, remainder:%d\n", rv); |
535 | } | ||
536 | 534 | ||
537 | kfree(entries); | 535 | kfree(entries); |
538 | return -ENOMEM; | 536 | return -ENOMEM; |