mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
NODEVFS cleanup: remove calls to cdevsw_remove()
This commit is contained in:
parent
f0603d5be6
commit
81d4b45da7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111568
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user