diff options
author | phk <phk@FreeBSD.org> | 2003-02-26 20:20:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-26 20:20:58 +0000 |
commit | 2800385f671fa2728098568f997c6b260e1d4f12 (patch) | |
tree | 60f6cbc803faf52c4cc124883cf14365e23683fe /sys/net | |
parent | 7d819be55789099285aa8b8d940c2203a750872a (diff) | |
download | FreeBSD-src-2800385f671fa2728098568f997c6b260e1d4f12.zip FreeBSD-src-2800385f671fa2728098568f997c6b260e1d4f12.tar.gz |
NODEVFS cleanup: remove calls to cdevsw_remove()
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index bcb9062..4de15ec 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -151,7 +151,6 @@ tunmodevent(module_t mod, int type, void *data) tununits.rm_descr = "open if_tun units"; err = rman_init(&tununits); if (err != 0) { - cdevsw_remove(&tun_cdevsw); EVENTHANDLER_DEREGISTER(dev_clone, tag); return (err); } @@ -160,7 +159,6 @@ tunmodevent(module_t mod, int type, void *data) printf("%s: tununits: rman_manage_region: Failed %d\n", TUNNAME, err); rman_fini(&tununits); - cdevsw_remove(&tun_cdevsw); EVENTHANDLER_DEREGISTER(dev_clone, tag); return (err); } |