mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
EVENTHANDLER_REGISTER() doesn't fail.
This commit is contained in:
parent
8dca98d787
commit
be887eca0b
1 changed files with 0 additions and 6 deletions
|
|
@ -873,14 +873,8 @@ wlan_modevent(module_t mod, int type, void *unused)
|
|||
printf("wlan: <802.11 Link Layer>\n");
|
||||
wlan_bpfevent = EVENTHANDLER_REGISTER(bpf_track,
|
||||
bpf_track, 0, EVENTHANDLER_PRI_ANY);
|
||||
if (wlan_bpfevent == NULL)
|
||||
return ENOMEM;
|
||||
wlan_ifllevent = EVENTHANDLER_REGISTER(iflladdr_event,
|
||||
wlan_iflladdr, NULL, EVENTHANDLER_PRI_ANY);
|
||||
if (wlan_ifllevent == NULL) {
|
||||
EVENTHANDLER_DEREGISTER(bpf_track, wlan_bpfevent);
|
||||
return ENOMEM;
|
||||
}
|
||||
#if __FreeBSD_version >= 1000020
|
||||
wlan_cloner = if_clone_simple(wlanname, wlan_clone_create,
|
||||
wlan_clone_destroy, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue