diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2007-09-20 17:07:46 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:50:26 -0400 |
commit | 700ca0e7016008f65f75c2629e309fc03347c856 (patch) | |
tree | 1d6e2f45e05f1c2031b71f3a673a188e4796d5af /drivers/scsi/qla2xxx/qla_iocb.c | |
parent | f363b9434a464e72927b468ba33cb548f482669f (diff) |
[SCSI] qla2xxx: Cleanup several 'sparse' warnings.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_iocb.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_iocb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 3a5e78cb6b3f..7f6a89bd94f3 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c | |||
@@ -308,7 +308,7 @@ qla2x00_start_scsi(srb_t *sp) | |||
308 | handle++; | 308 | handle++; |
309 | if (handle == MAX_OUTSTANDING_COMMANDS) | 309 | if (handle == MAX_OUTSTANDING_COMMANDS) |
310 | handle = 1; | 310 | handle = 1; |
311 | if (ha->outstanding_cmds[handle] == 0) | 311 | if (!ha->outstanding_cmds[handle]) |
312 | break; | 312 | break; |
313 | } | 313 | } |
314 | if (index == MAX_OUTSTANDING_COMMANDS) | 314 | if (index == MAX_OUTSTANDING_COMMANDS) |
@@ -711,7 +711,7 @@ qla24xx_start_scsi(srb_t *sp) | |||
711 | handle++; | 711 | handle++; |
712 | if (handle == MAX_OUTSTANDING_COMMANDS) | 712 | if (handle == MAX_OUTSTANDING_COMMANDS) |
713 | handle = 1; | 713 | handle = 1; |
714 | if (ha->outstanding_cmds[handle] == 0) | 714 | if (!ha->outstanding_cmds[handle]) |
715 | break; | 715 | break; |
716 | } | 716 | } |
717 | if (index == MAX_OUTSTANDING_COMMANDS) | 717 | if (index == MAX_OUTSTANDING_COMMANDS) |