scsi: fas216: Fix a build error
Use SAM_STAT_GOOD instead of GOOD since GOOD has been removed. Link: https://lore.kernel.org/r/20210711033623.11267-1-bvanassche@acm.org Fixes: 3d45cefc8edd ("scsi: core: Drop obsolete Linux-specific SCSI status codes") Fixes: df1303147649 ("scsi: fas216: Use get_status_byte() to avoid using Linux-specific status codes") Cc: Hannes Reinecke <hare@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
422969bbb5
commit
fbf1a58701
@ -2010,7 +2010,7 @@ static void fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt,
|
||||
"request sense complete, result=0x%04x%02x%02x",
|
||||
result, SCpnt->SCp.Message, SCpnt->SCp.Status);
|
||||
|
||||
if (result != DID_OK || SCpnt->SCp.Status != GOOD)
|
||||
if (result != DID_OK || SCpnt->SCp.Status != SAM_STAT_GOOD)
|
||||
/*
|
||||
* Something went wrong. Make sure that we don't
|
||||
* have valid data in the sense buffer that could
|
||||
|
Loading…
x
Reference in New Issue
Block a user