scsi: core: check for equality of result byte values
authorJohannes Thumshirn <jthumshirn@suse.de>
Mon, 25 Jun 2018 11:20:58 +0000 (13:20 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:27:06 +0000 (12:27 -0400)
commitc65be1a63f1df224c8f22d72b9ec824241ada585
tree92d2f1e475f5556095f02b172cd7b7ac595e6479
parent8e1695a07c7b28e2eb1c02cc01e2b8f5dd28bf87
scsi: core: check for equality of result byte values

When evaluating a SCSI command's result using the field access macros,
check for equality of the fields and not if a specific bit is set.

This is a preparation patch, for reworking the results field in the
SCSI command.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ch.c
drivers/scsi/dc395x.c
drivers/scsi/scsi.c
drivers/scsi/scsi_ioctl.c
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_transport_spi.c
drivers/scsi/sd.c
drivers/scsi/ufs/ufshcd.c