Skip to content

Commit d814c51

Browse files
Salyzyn, MarkJames Bottomley
authored andcommitted
[SCSI] dpt_i2o: use constant instead of bare value
0x02 becomes SAM_STAT_CHECK_CONDITION Signed-off-by: Mark Salyzyn <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent f7fea18 commit d814c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/dpt_i2o.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ static s32 adpt_i2o_to_scsi(void __iomem *reply, struct scsi_cmnd* cmd)
22962296

22972297
// copy over the request sense data if it was a check
22982298
// condition status
2299-
if (dev_status == 0x02 /*CHECK_CONDITION*/) {
2299+
if (dev_status == SAM_STAT_CHECK_CONDITION) {
23002300
u32 len = min(SCSI_SENSE_BUFFERSIZE, 40);
23012301
// Copy over the sense data
23022302
memcpy_fromio(cmd->sense_buffer, (reply+28) , len);

0 commit comments

Comments
 (0)