diff options
author | peter <peter@FreeBSD.org> | 1999-11-18 06:39:47 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-18 06:39:47 +0000 |
commit | f061e9c46f92f23804933e44928fe606ddaa359e (patch) | |
tree | bd7c062712b0de8c3a7a4ade4d21485ac28790ab /sys/dev/snp | |
parent | c35eef4db5a21c237f6b3b9f0dcf553137d295e7 (diff) | |
download | FreeBSD-src-f061e9c46f92f23804933e44928fe606ddaa359e.zip FreeBSD-src-f061e9c46f92f23804933e44928fe606ddaa359e.tar.gz |
Remove cdevsw_add() - the make_dev() calls are already there.
Don't '#if NSNP > 0' around the thing as it's silly and not required.
config(8) only causes it to be compiled if NSNP is > 0 by definition.
Diffstat (limited to 'sys/dev/snp')
-rw-r--r-- | sys/dev/snp/snp.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 9105e26..84ad3ad 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -16,9 +16,6 @@ */ #include "snp.h" - -#if NSNP > 0 - #include "opt_compat.h" #include <sys/param.h> #include <sys/systm.h> @@ -519,12 +516,8 @@ snp_drvinit(unused) { int i; - cdevsw_add(&snp_cdevsw); - for ( i = 0 ; i < NSNP ; i++) + for (i = 0; i < NSNP; i++) make_dev(&snp_cdevsw, i, 0, 0, 0600, "snp%d", i); } SYSINIT(snpdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,snp_drvinit,NULL) - - -#endif |