summaryrefslogtreecommitdiff
path: root/drivers/scsi/smartpqi
diff options
context:
space:
mode:
authorKevin Barnett <kevin.barnett@hpe.com>2017-05-04 02:54:18 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-13 03:48:03 +0300
commit4e8415e3861e8b73a47c92e09e044b9dbc8ee37f (patch)
tree2f89ec9457cbef53a6c3271499abcee419f1e1e7 /drivers/scsi/smartpqi
parentbd10cf0be6057f680fab911d89761fd15d76b205 (diff)
downloadlinux-4e8415e3861e8b73a47c92e09e044b9dbc8ee37f.tar.xz
scsi: smartpqi: change return value for LUN reset operations
change return value for controller offline to be consistent with the rest of the driver. Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/smartpqi')
-rw-r--r--drivers/scsi/smartpqi/smartpqi_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
index 11545f322561..fa6102173d2a 100644
--- a/drivers/scsi/smartpqi/smartpqi_init.c
+++ b/drivers/scsi/smartpqi/smartpqi_init.c
@@ -5025,7 +5025,7 @@ static int pqi_wait_for_lun_reset_completion(struct pqi_ctrl_info *ctrl_info,
pqi_check_ctrl_health(ctrl_info);
if (pqi_ctrl_offline(ctrl_info)) {
- rc = -ETIMEDOUT;
+ rc = -ENXIO;
break;
}
}