[SCSI] dpt_i2o: use constant instead of bare value
0x02 becomes SAM_STAT_CHECK_CONDITION Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
f7fea185d2
commit
d814c5173c
1 changed files with 1 additions and 1 deletions
|
@ -2296,7 +2296,7 @@ static s32 adpt_i2o_to_scsi(void __iomem *reply, struct scsi_cmnd* cmd)
|
|||
|
||||
// copy over the request sense data if it was a check
|
||||
// condition status
|
||||
if (dev_status == 0x02 /*CHECK_CONDITION*/) {
|
||||
if (dev_status == SAM_STAT_CHECK_CONDITION) {
|
||||
u32 len = min(SCSI_SENSE_BUFFERSIZE, 40);
|
||||
// Copy over the sense data
|
||||
memcpy_fromio(cmd->sense_buffer, (reply+28) , len);
|
||||
|
|
Loading…
Reference in a new issue