summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_mod.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-09 11:03:45 +0000
committerphk <phk@FreeBSD.org>2003-03-09 11:03:45 +0000
commit2fe1f6204d38d7d1423802fd525964774dae667c (patch)
treecfa97a9d4fdebe78406e688b9759ba8119bb7dfc /sys/netncp/ncp_mod.c
parent3a6679ec745949833041f02adfc73f8672717e1e (diff)
downloadFreeBSD-src-2fe1f6204d38d7d1423802fd525964774dae667c.zip
FreeBSD-src-2fe1f6204d38d7d1423802fd525964774dae667c.tar.gz
Note that MAJOR_AUTO is now the default if d_maj is not initialized. This
is more robust and prevents the hijacking of /dev/console for the typical mistake. Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the driver source has cross-branch compatibility to old releases.
Diffstat (limited to 'sys/netncp/ncp_mod.c')
-rw-r--r--sys/netncp/ncp_mod.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netncp/ncp_mod.c b/sys/netncp/ncp_mod.c
index 889d620..4ef96e8 100644
--- a/sys/netncp/ncp_mod.c
+++ b/sys/netncp/ncp_mod.c
@@ -68,7 +68,6 @@ static struct cdevsw ncp_cdevsw = {
.d_close = nullclose,
.d_ioctl = ncp_ioctl,
.d_name = "ncp",
- .d_maj = MAJOR_AUTO,
};
static int ncp_conn_frag_rq(struct ncp_conn *, struct thread *,
OpenPOWER on IntegriCloud