HomeFreeBSD

net: Remove unneeded NULL check for the allocated ifnet

Description

net: Remove unneeded NULL check for the allocated ifnet

Change 4787572d0580 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

MFC note: This is only a partial MFC, as some drivers do not exist in
stable/13 branch. The if_epair(4) drifts too much from stable/14 so not
included in this MFC.

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
(cherry picked from commit 6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3)

Details

Provenance
zleiAuthored on Jun 28 2024, 10:16 AM
Reviewer
kp
Differential Revision
D45740: net: Remove unneeded NULL check for the allocated ifnet
Parents
rG04393db00313: Bump lld LINKER_FREEBSD_VERSION for reproducibility fix
Branches
Unknown
Tags
Unknown