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

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)

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
rG72f8b18b8d93: vfs cache: add sysctl vfs.cache.param.hitpct
Branches
Unknown
Tags
Unknown