Remove duplicate pci_disable_device() call
Subsystems (2)
PATCH 1/1 Remove duplicate pci_disable_device() call
[PATCH] [qla2xxx] Remove duplicate pci_disable_device() call
On the path qla2x00_probe_one() -> probe_failed -> qla2x00_free_device(), pci_disable_device() is executed twice, once in qla2x00_free_device() and once in qla2x00_probe_one().
This patch removes the unnecessary call.
Signed-off-by Bernhard Walle <[email protected]>
--- drivers/scsi/qla2xxx/qla_os.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_os.c +1 -2
@@ -1705,6 +1705,7 @@ qla2x00_remove_one(struct pci_dev *pdev)scsi_host_put (ha->host); +pci_disable_device (pdev);pci_set_drvdata (pdev,NULL ); }
@@ -1747,8 +1748,6 @@ qla2x00_free_device(scsi_qla_host_t *ha)if (ha->iobase)iounmap (ha->iobase);pci_release_regions (ha->pdev); - -pci_disable_device (ha->pdev); } static inline void
Quoted 10 lines · Bernhard Walle
[PATCH] [qla2xxx] Remove duplicate
pci_disable_device()callOn the path
qla2x00_probe_one()->probe_failed->qla2x00_free_device(),pci_disable_device()is executed twice, once inqla2x00_free_device()and once inqla2x00_probe_one().This patch removes the unnecessary call.
Signed-off-by Bernhard Walle <[email protected]>
Acked-by Andrew Vasquez <[email protected]>