Skip to content

Commit

Permalink
scsi: fas216: Fix a build error
Browse files Browse the repository at this point in the history
Use SAM_STAT_GOOD instead of GOOD since GOOD has been removed.

Link: https://lore.kernel.org/r/[email protected]
Fixes: 3d45cef ("scsi: core: Drop obsolete Linux-specific SCSI status codes")
Fixes: df13031 ("scsi: fas216: Use get_status_byte() to avoid using Linux-specific status codes")
Cc: Hannes Reinecke <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
bvanassche authored and martinkpetersen committed Jul 13, 2021
1 parent 422969b commit fbf1a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/arm/fas216.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbf1a58

Please sign in to comment.