forked from luck/tmp_suning_uos_patched
[SCSI] qla2xxx: Cleanup several 'sparse' warnings.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
f363b9434a
commit
700ca0e701
@ -308,7 +308,7 @@ qla2x00_start_scsi(srb_t *sp)
|
||||
handle++;
|
||||
if (handle == MAX_OUTSTANDING_COMMANDS)
|
||||
handle = 1;
|
||||
if (ha->outstanding_cmds[handle] == 0)
|
||||
if (!ha->outstanding_cmds[handle])
|
||||
break;
|
||||
}
|
||||
if (index == MAX_OUTSTANDING_COMMANDS)
|
||||
@ -711,7 +711,7 @@ qla24xx_start_scsi(srb_t *sp)
|
||||
handle++;
|
||||
if (handle == MAX_OUTSTANDING_COMMANDS)
|
||||
handle = 1;
|
||||
if (ha->outstanding_cmds[handle] == 0)
|
||||
if (!ha->outstanding_cmds[handle])
|
||||
break;
|
||||
}
|
||||
if (index == MAX_OUTSTANDING_COMMANDS)
|
||||
|
Loading…
Reference in New Issue
Block a user