From: Hannes Reinecke Date: Fri, 18 Nov 2016 07:32:47 +0000 (+0100) Subject: scsi: hpsa: use correct DID_NO_CONNECT hostbyte X-Git-Tag: v4.10-rc1~128^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ccde7004ff66cdcbe4c8005f3bb44dda6ab0b99;p=platform%2Fkernel%2Flinux-exynos.git scsi: hpsa: use correct DID_NO_CONNECT hostbyte NOT_READY is a sense key, not a legit scsi hostbyte value. Use DID_NO_CONNECT instead. Signed-off-by: Hannes Reinecke Acked-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 5b1ba58..b9f1bab 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -5487,7 +5487,7 @@ static int hpsa_scsi_queue_command(struct Scsi_Host *sh, struct scsi_cmnd *cmd) dev = cmd->device->hostdata; if (!dev) { - cmd->result = NOT_READY << 16; /* host byte */ + cmd->result = DID_NO_CONNECT << 16; cmd->scsi_done(cmd); return 0; }