aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_iocb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_iocb.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_iocb.c4
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)