Commit 9a231caa authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen
Browse files

scsi: myrs: Fix a logical vs bitwise bug



The || was supposed to be |.  The original code just sets ->result to 1.

Fixes: 77266186 ("scsi: myrs: Add Mylex RAID controller (SCSI interface)")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f4445bb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2086,7 +2086,7 @@ static void myrs_handle_scsi(struct myrs_hba *cs, struct myrs_cmdblk *cmd_blk,
	    status == MYRS_STATUS_DEVICE_NON_RESPONSIVE2)
		scmd->result = (DID_BAD_TARGET << 16);
	else
		scmd->result = (DID_OK << 16) || status;
		scmd->result = (DID_OK << 16) | status;
	scmd->scsi_done(scmd);
}