From: Kevin Barnett Date: Wed, 3 May 2017 23:54:18 +0000 (-0500) Subject: scsi: smartpqi: change return value for LUN reset operations X-Git-Tag: v4.13-rc1~136^2~225 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e8415e3861e8b73a47c92e09e044b9dbc8ee37f;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 11545f3..fa61021 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; } }