summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorhosokawa <hosokawa@FreeBSD.org>1998-02-27 09:47:36 +0000
committerhosokawa <hosokawa@FreeBSD.org>1998-02-27 09:47:36 +0000
commit68d701fa4292eab00ec75bf375116d55009499b5 (patch)
tree8e959e9609288aaf6192c901356e65bf7510f733 /usr.sbin
parentd746039957f220307d8f09a84bc2bc2fb97e9587 (diff)
downloadFreeBSD-src-68d701fa4292eab00ec75bf375116d55009499b5.zip
FreeBSD-src-68d701fa4292eab00ec75bf375116d55009499b5.tar.gz
Removed a confusing "#if 0 ... #endif".
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c28
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;
OpenPOWER on IntegriCloud