summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_snoop.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-18 06:39:47 +0000
committerpeter <peter@FreeBSD.org>1999-11-18 06:39:47 +0000
commitf061e9c46f92f23804933e44928fe606ddaa359e (patch)
treebd7c062712b0de8c3a7a4ade4d21485ac28790ab /sys/kern/tty_snoop.c
parentc35eef4db5a21c237f6b3b9f0dcf553137d295e7 (diff)
downloadFreeBSD-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/kern/tty_snoop.c')
-rw-r--r--sys/kern/tty_snoop.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c
index 9105e26..84ad3ad 100644
--- a/sys/kern/tty_snoop.c
+++ b/sys/kern/tty_snoop.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
OpenPOWER on IntegriCloud