提交 700ca0e7 编写于 作者: A Andrew Vasquez 提交者: James Bottomley

[SCSI] qla2xxx: Cleanup several 'sparse' warnings.

Signed-off-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 f363b943
...@@ -308,7 +308,7 @@ qla2x00_start_scsi(srb_t *sp) ...@@ -308,7 +308,7 @@ qla2x00_start_scsi(srb_t *sp)
handle++; handle++;
if (handle == MAX_OUTSTANDING_COMMANDS) if (handle == MAX_OUTSTANDING_COMMANDS)
handle = 1; handle = 1;
if (ha->outstanding_cmds[handle] == 0) if (!ha->outstanding_cmds[handle])
break; break;
} }
if (index == MAX_OUTSTANDING_COMMANDS) if (index == MAX_OUTSTANDING_COMMANDS)
...@@ -711,7 +711,7 @@ qla24xx_start_scsi(srb_t *sp) ...@@ -711,7 +711,7 @@ qla24xx_start_scsi(srb_t *sp)
handle++; handle++;
if (handle == MAX_OUTSTANDING_COMMANDS) if (handle == MAX_OUTSTANDING_COMMANDS)
handle = 1; handle = 1;
if (ha->outstanding_cmds[handle] == 0) if (!ha->outstanding_cmds[handle])
break; break;
} }
if (index == MAX_OUTSTANDING_COMMANDS) if (index == MAX_OUTSTANDING_COMMANDS)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册