diff options
author | Hannes Reinecke <hare@suse.de> | 2021-04-27 10:30:44 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-05-31 22:48:24 -0400 |
commit | a7479a8477e61420df43e1e8964986d90764efca (patch) | |
tree | 7b3f90d0f4503a13287d7ea25db2ce17b4b2c499 /drivers/scsi/scsi_lib.c | |
parent | 54cf31d07aa859e142c527f04eefa254659e1af2 (diff) | |
download | lwn-a7479a8477e61420df43e1e8964986d90764efca.tar.gz lwn-a7479a8477e61420df43e1e8964986d90764efca.zip |
scsi: core: Kill message byte
Remove last vestiges of SCSI status message bytes.
Link: https://lore.kernel.org/r/20210427083046.31620-39-hare@suse.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 75d633ffdac0..e3897bb424b4 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -591,10 +591,7 @@ static blk_status_t scsi_result_to_blk_status(struct scsi_cmnd *cmd, int result) { switch (host_byte(result)) { case DID_OK: - /* - * Also check the other bytes than the status byte in result - */ - if (scsi_status_is_good(result) && (result & ~0xff) == 0) + if (scsi_status_is_good(result)) return BLK_STS_OK; return BLK_STS_IOERR; case DID_TRANSPORT_FAILFAST: |