summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitsuru IWASAKI <iwasaki@FreeBSD.org>2000-01-24 13:15:05 +0000
committerMitsuru IWASAKI <iwasaki@FreeBSD.org>2000-01-24 13:15:05 +0000
commit29d1eb210d304cfd2b7cb87558437b973bf94d19 (patch)
treee1f50352f285d4f113367c34480119ef0b22e6f0
parentb9857addba2c43f2b55ae7103700d567221599c4 (diff)
Notes
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c
index 404aa560ff83..c64c002d17bb 100644
--- a/usr.sbin/pccard/pccardd/cardd.c
+++ b/usr.sbin/pccard/pccardd/cardd.c
@@ -348,11 +348,11 @@ assign_driver(struct card *cp)
return (conf);
}
/*
- * New driver must be allocated. Find one that matches the
- * any configurations not in use.
+ * New driver must be allocated. Find the first configuration
+ * not in use.
*/
for (conf = cp->config; conf; conf = conf->next)
- if (conf->inuse == 0 && conf->driver->card == 0)
+ if (conf->inuse == 0 && conf->driver->inuse/*card*/ == 0)
break;
if (conf == 0) {
logmsg("No free configuration for card %s", cp->manuf);