mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
scsi: fas216: Use get_status_byte() to avoid using Linux-specific status codes
The driver should be using the standard SAM_STAT_ values, and not the Linux-specific ones. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
committed by
Martin K. Petersen
parent
7f33f56b02
commit
df13031476
@@ -2060,15 +2060,15 @@ fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result)
|
||||
* If the command returned CHECK_CONDITION or COMMAND_TERMINATED
|
||||
* status, request the sense information.
|
||||
*/
|
||||
if (status_byte(SCpnt->result) == CHECK_CONDITION ||
|
||||
status_byte(SCpnt->result) == COMMAND_TERMINATED)
|
||||
if (get_status_byte(SCpnt) == SAM_STAT_CHECK_CONDITION ||
|
||||
get_status_byte(SCpnt) == SAM_STAT_COMMAND_TERMINATED)
|
||||
goto request_sense;
|
||||
|
||||
/*
|
||||
* If the command did not complete with GOOD status,
|
||||
* we are all done here.
|
||||
*/
|
||||
if (status_byte(SCpnt->result) != GOOD)
|
||||
if (get_status_byte(SCpnt) != SAM_STAT_GOOD)
|
||||
goto done;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user