scsi: hisi_sas: Return directly if init hardware failed
[platform/kernel/linux-rpi.git] / drivers / scsi / hisi_sas / hisi_sas_v3_hw.c
index c4f76d7..723f51c 100644 (file)
@@ -3423,6 +3423,7 @@ static int hisi_sas_v3_resume(struct pci_dev *pdev)
        if (rc) {
                scsi_remove_host(shost);
                pci_disable_device(pdev);
+               return rc;
        }
        hisi_hba->hw->phys_init(hisi_hba);
        sas_resume_ha(sha);