diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-05 19:16:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:51 -0400 |
commit | b6f0b0d016a254ff583fec26f2c9e21c1ae2fdf3 (patch) | |
tree | 08a1ef868a241b971de601c7698b58deaadfe340 /drivers/scsi/sym53c416.c | |
parent | f59154c53fac0bfee52393247beadf0474770351 (diff) |
[PATCH] 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>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Matthew Wilcox <willy@debian.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/sym53c416.c')
-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 f26c3a29e631..ebfddd40ce67 100644 --- a/drivers/scsi/sym53c416.c +++ b/drivers/scsi/sym53c416.c | |||
@@ -809,7 +809,7 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt) | |||
809 | /* printk("sym53c416_reset\n"); */ | 809 | /* printk("sym53c416_reset\n"); */ |
810 | base = SCpnt->device->host->io_port; | 810 | base = SCpnt->device->host->io_port; |
811 | /* search scsi_id - fixme, we shouldnt need to iterate for this! */ | 811 | /* search scsi_id - fixme, we shouldnt need to iterate for this! */ |
812 | for(i = 0; i < host_index && scsi_id != -1; i++) | 812 | for(i = 0; i < host_index && scsi_id == -1; i++) |
813 | if(hosts[i].base == base) | 813 | if(hosts[i].base == base) |
814 | scsi_id = hosts[i].scsi_id; | 814 | scsi_id = hosts[i].scsi_id; |
815 | outb(RESET_CHIP, base + COMMAND_REG); | 815 | outb(RESET_CHIP, base + COMMAND_REG); |