]> err.no Git - linux-2.6/commitdiff
[SCSI] dpt_i2o: use constant instead of bare value
authorSalyzyn, Mark <Mark_Salyzyn@adaptec.com>
Mon, 14 Jan 2008 19:04:40 +0000 (11:04 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 23 Jan 2008 17:29:28 +0000 (11:29 -0600)
0x02 becomes SAM_STAT_CHECK_CONDITION

Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/dpt_i2o.c

index 577b34c93a075ac3c0dc81733122817d2e4b0014..19cce125124c8d423fc9cd500175f2b70bd9e7ce 100644 (file)
@@ -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);