scsi: hisi_sas: Replace with standard error code return value
[linux-2.6-microblaze.git] / drivers / scsi / hisi_sas / hisi_sas_v3_hw.c
index f3eb5cd..af2cc08 100644 (file)
@@ -5018,7 +5018,7 @@ static int _suspend_v3_hw(struct device *device)
        }
 
        if (test_and_set_bit(HISI_SAS_RESETTING_BIT, &hisi_hba->flags))
-               return -1;
+               return -EPERM;
 
        dev_warn(dev, "entering suspend state\n");