diff options
author | Salyzyn, Mark <Mark_Salyzyn@adaptec.com> | 2008-01-14 14:04:40 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 12:29:28 -0500 |
commit | d814c5173c671cf2c88d4e07db01b13312467ecd (patch) | |
tree | fad9cecbf152d19a298afe027f8ca3a06ad442ad /drivers | |
parent | f7fea185d2998dc4c902ec47834ab6db28fe0029 (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/dpt_i2o.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index 577b34c93a07..19cce125124c 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c | |||
@@ -2296,7 +2296,7 @@ static s32 adpt_i2o_to_scsi(void __iomem *reply, struct scsi_cmnd* cmd) | |||
2296 | 2296 | ||
2297 | // copy over the request sense data if it was a check | 2297 | // copy over the request sense data if it was a check |
2298 | // condition status | 2298 | // condition status |
2299 | if (dev_status == 0x02 /*CHECK_CONDITION*/) { | 2299 | if (dev_status == SAM_STAT_CHECK_CONDITION) { |
2300 | u32 len = min(SCSI_SENSE_BUFFERSIZE, 40); | 2300 | u32 len = min(SCSI_SENSE_BUFFERSIZE, 40); |
2301 | // Copy over the sense data | 2301 | // Copy over the sense data |
2302 | memcpy_fromio(cmd->sense_buffer, (reply+28) , len); | 2302 | memcpy_fromio(cmd->sense_buffer, (reply+28) , len); |