mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
scsi: myrs: Fix a logical vs bitwise bug
The || was supposed to be |. The original code just sets ->result to 1.
Fixes: 7726618639 ("scsi: myrs: Add Mylex RAID controller (SCSI interface)")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
f4445bb93d
commit
9a231caa77
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue