1
0
Fork 0

[SCSI] scsi_transport_spi: fix the misuse of scsi_execute return value

[jejb: fix rejections]
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
hifive-unleashed-5.1
FUJITA Tomonori 2008-12-05 15:37:52 +09:00 committed by James Bottomley
parent ccc607f6d2
commit 4d3fef9e69
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ static int spi_execute(struct scsi_device *sdev, const void *cmd,
REQ_FAILFAST_TRANSPORT |
REQ_FAILFAST_DRIVER,
NULL);
if (result & DRIVER_SENSE) {
if (driver_byte(result) & DRIVER_SENSE) {
struct scsi_sense_hdr sshdr_tmp;
if (!sshdr)
sshdr = &sshdr_tmp;