Removed a confusing "#if 0 ... #endif".

This commit is contained in:
hosokawa 1998-02-27 09:47:36 +00:00
parent d746039957
commit 68d701fa42

View File

@ -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;