diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-01 23:47:10 (GMT) |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-05-20 17:53:47 (GMT) |
commit | 380c3877ae5de888cfb7a59990b9aee5a415295f (patch) | |
tree | f66e529dc2d25c06fb97d181f3e45f72fc7c3699 | |
parent | 16c4b3e2071ad73e5cd2aa82961eed0414df6a7d (diff) | |
download | linux-fsl-qoriq-380c3877ae5de888cfb7a59990b9aee5a415295f.tar.xz |
[SCSI] drivers/scsi/sym53c416.c: fix a wrong check
The Coverity checker found that this for loop was wrong.
This patch changes it to what seems to be intended.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/sym53c416.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sym53c416.c b/drivers/scsi/sym53c416.c index f26c3a2..ebfddd4 100644 --- a/drivers/scsi/sym53c416.c +++ b/drivers/scsi/sym53c416.c @@ -809,7 +809,7 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt) /* printk("sym53c416_reset\n"); */ base = SCpnt->device->host->io_port; /* search scsi_id - fixme, we shouldnt need to iterate for this! */ - for(i = 0; i < host_index && scsi_id != -1; i++) + for(i = 0; i < host_index && scsi_id == -1; i++) if(hosts[i].base == base) scsi_id = hosts[i].scsi_id; outb(RESET_CHIP, base + COMMAND_REG); |