opnsense-src/sys/dev/etherswitch
Zhenlei Huang c4da7b7e66 net: Remove unneeded NULL check for the allocated ifnet
Change 4787572d05 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:	kp, imp, glebius, stevek
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45740

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
2024-07-15 09:14:32 +02:00
..
ar40xx net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
arswitch net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
e6000sw net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
felix net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
infineon net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
ip17x net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
micrel net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
mtkswitch net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
rtl8366 net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
ukswitch net: Remove unneeded NULL check for the allocated ifnet 2024-07-15 09:14:32 +02:00
etherswitch.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
etherswitch.h sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
etherswitch_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
miiproxy.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
miiproxy.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00