Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d814c517 authored by Salyzyn, Mark's avatar Salyzyn, Mark Committed by James Bottomley
Browse files

[SCSI] dpt_i2o: use constant instead of bare value



0x02 becomes SAM_STAT_CHECK_CONDITION

Signed-off-by: default avatarMark Salyzyn <aacraid@adaptec.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent f7fea185
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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
		// copy over the request sense data if it was a check
		// condition status
		// condition status
		if (dev_status == 0x02 /*CHECK_CONDITION*/) {
		if (dev_status == SAM_STAT_CHECK_CONDITION) {
			u32 len = min(SCSI_SENSE_BUFFERSIZE, 40);
			u32 len = min(SCSI_SENSE_BUFFERSIZE, 40);
			// Copy over the sense data
			// Copy over the sense data
			memcpy_fromio(cmd->sense_buffer, (reply+28) , len);
			memcpy_fromio(cmd->sense_buffer, (reply+28) , len);