summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-11-18 08:32:47 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2016-11-29 11:21:48 -0500
commit1ccde7004ff66cdcbe4c8005f3bb44dda6ab0b99 (patch)
tree3399fc6f4a87bd06b740edc4a43c941aae2b9a7d /drivers/scsi/hpsa.c
parent669f044170d8933c3d66d231b69ea97cb8447338 (diff)
downloadlinux-1ccde7004ff66cdcbe4c8005f3bb44dda6ab0b99.tar.bz2
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 <hare@suse.com> Acked-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 5b1ba5861275..b9f1bab4dfb7 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;
}