diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index f70f4388a2c..cc53a4aaf02 100644 --- a/sys/dev/i2c/i2c_scan.c +++ b/sys/dev/i2c/i2c_scan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i2c_scan.c,v 1.125 2008/04/20 00:22:39 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.126 2008/04/22 02:22:54 cnst Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -961,7 +961,9 @@ iic_scan(struct device *self, struct i2cbus_attach_args *iba) for (addr = pl[j].start; addr <= pl[j].end; addr++) { for (k = 0; k < sizeof(ignore_addrs); k++) if (ignore_addrs[k] == addr) - continue; + break; + if (k < sizeof(ignore_addrs)) + continue; /* Perform RECEIVE BYTE command */ iic_acquire_bus(ic, 0); |