Commit 66eee7f9 authored by James Bottomley's avatar James Bottomley

Fix thinko introduced into include/scsi/scsi.h

SAM_STAT_* are return codes, not bitmaps
parent 71d5d7e9
...@@ -137,11 +137,11 @@ static inline int scsi_status_is_good(int status) ...@@ -137,11 +137,11 @@ static inline int scsi_status_is_good(int status)
status &= 0xfe; status &= 0xfe;
return ((status & SAM_STAT_GOOD) return ((status == SAM_STAT_GOOD)
|| (status & SAM_STAT_INTERMEDIATE) || (status == SAM_STAT_INTERMEDIATE)
|| (status & SAM_STAT_INTERMEDIATE_CONDITION_MET) || (status == SAM_STAT_INTERMEDIATE_CONDITION_MET)
/* FIXME: this is obsolete in SAM-3 */ /* FIXME: this is obsolete in SAM-3 */
|| (status & SAM_STAT_COMMAND_TERMINATED)); || (status == SAM_STAT_COMMAND_TERMINATED));
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment