diff options
author | njl <njl@FreeBSD.org> | 2004-08-03 06:48:36 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-08-03 06:48:36 +0000 |
commit | 30d8b6d6ada8bcd6d6c75d7076b628f4e926cf55 (patch) | |
tree | 13532c25081bd04e6e33dbcde6c35670deed786a | |
parent | 3fbdc1b5aae3aa923dacb0fe39d145634773d164 (diff) | |
download | FreeBSD-src-30d8b6d6ada8bcd6d6c75d7076b628f4e926cf55.zip FreeBSD-src-30d8b6d6ada8bcd6d6c75d7076b628f4e926cf55.tar.gz |
Use the slot, not an otherwise unused index variable as the probe offset.
This passed testing because the variable happened to be 0 in most cases.
Compile warning found by: David Syphers <dsyphers AT u.washington.edu>
-rw-r--r-- | sys/dev/eisa/eisaconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c index a26e17d..d545350 100644 --- a/sys/dev/eisa/eisaconf.c +++ b/sys/dev/eisa/eisaconf.c @@ -153,7 +153,7 @@ DRIVER_MODULE(mainboard, eisa, mainboard_driver, mainboard_devclass, 0, 0); static int eisa_probe(device_t dev) { - int devices_found, i, slot; + int devices_found, slot; struct eisa_device *e_dev; device_t child; eisa_id_t eisa_id; @@ -163,7 +163,7 @@ eisa_probe(device_t dev) devices_found = 0; for (slot = 0; slot < num_eisa_slots; slot++) { eisa_id = 0; - if (eisa_probe_slot(i, &eisa_id)) { + if (eisa_probe_slot(slot, &eisa_id)) { /* * If there's no card in the first slot (the * mainboard), then the system doesn't have EISA. |