diff options
author | hosokawa <hosokawa@FreeBSD.org> | 1998-02-27 09:47:36 +0000 |
---|---|---|
committer | hosokawa <hosokawa@FreeBSD.org> | 1998-02-27 09:47:36 +0000 |
commit | 68d701fa4292eab00ec75bf375116d55009499b5 (patch) | |
tree | 8e959e9609288aaf6192c901356e65bf7510f733 /usr.sbin/pccard/pccardd | |
parent | d746039957f220307d8f09a84bc2bc2fb97e9587 (diff) | |
download | FreeBSD-src-68d701fa4292eab00ec75bf375116d55009499b5.zip FreeBSD-src-68d701fa4292eab00ec75bf375116d55009499b5.tar.gz |
Removed a confusing "#if 0 ... #endif".
Diffstat (limited to 'usr.sbin/pccard/pccardd')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index c31ed27..cc7e692 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id: cardd.c,v 1.25 1998/02/27 08:19:23 hosokawa Exp $"; + "$Id: cardd.c,v 1.26 1998/02/27 08:40:53 hosokawa Exp $"; #endif /* not lint */ #include <stdio.h> @@ -344,32 +344,6 @@ assign_driver(struct card *cp) return (0); } } -#if 0 - /* Allocate I/O and memory resources. */ - for (ap = drvp->io; ap; ap = ap->next) { - if (ap->addr == 0 && ap->size) { - int i = bit_fns(io_avail, IOPORTS, ap->size); - - if (i < 0) { - logmsg("Failed to allocate I/O ports for %s\n", - cp->manuf); - return (0); - } - ap->addr = i; - bit_nclear(io_avail, i, ap->size); - } - } - for (ap = drvp->mem; ap; ap = ap->next) { - if (ap->addr == 0 && ap->size) { - ap->addr = alloc_memory(ap->size); - if (ap->addr == 0) { - logmsg("Failed to allocate memory for %s\n", - cp->manuf); - return (0); - } - } - } -#endif /* 0 */ drvp->card = cp; drvp->config = conf; drvp->inuse = 1; |