NO_GEOM cleanup: unifdef;

This commit is contained in:
Poul-Henning Kamp 2003-01-30 19:22:27 +00:00
parent 9b8fbc361b
commit 6e1203e558

View File

@ -66,20 +66,12 @@ static int ready_for_devs;
static int free_devt;
SYSCTL_INT(_debug, OID_AUTO, free_devt, CTLFLAG_RW, &free_devt, 0, "");
#ifdef NO_GEOM
/* XXX: This is a hack */
void disk_dev_synth(dev_t dev);
#endif
struct cdevsw *
devsw(dev_t dev)
{
if (dev->si_devsw)
return (dev->si_devsw);
#ifdef NO_GEOM
/* XXX: Hack around our backwards disk code */
disk_dev_synth(dev);
#endif
if (dev->si_devsw)
return (dev->si_devsw);
return (NULL);