scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()
authorHannes Reinecke <hare@suse.de>
Mon, 26 Feb 2018 07:39:59 +0000 (08:39 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Mar 2018 01:16:52 +0000 (20:16 -0500)
commite39a97353e5378eb46bf01679799c5704d397f32
tree9372d05e5ee016ad861b7b0b85659e48ad0faa9c
parent3be8828fc507cdafe7040a3dcf361a2bcd8e305b
scsi: core: return BLK_STS_OK for DID_OK in __scsi_error_from_host_byte()

When converting __scsi_error_from_host_byte() to BLK_STS error codes the
case DID_OK was forgotten, resulting in it always returning an error.

Fixes: 2a842acab109 ("block: introduce new block status code type")
Cc: Doug Gilbert <dgilbert@interlog.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c