]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
scsi: hisi_sas: Code cleanup and minor bug fixes
[mirror_ubuntu-bionic-kernel.git] / drivers / scsi / hisi_sas / hisi_sas_v1_hw.c
index 8dd0e6a6ff8a0700c73d047172ee817c2ff264e2..84a0ccc4daf585723b3265de0cb91f7e632932de 100644 (file)
@@ -651,8 +651,10 @@ static int reset_hw_v1_hw(struct hisi_hba *hisi_hba)
                        dev_err(dev, "De-reset failed\n");
                        return -EIO;
                }
-       } else
+       } else {
                dev_warn(dev, "no reset method\n");
+               return -EINVAL;
+       }
 
        return 0;
 }