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

Details

Provenance
zleiAuthored on Fri, Jun 28, 10:16 AM
Reviewer
kp
Differential Revision
D45740: net: Remove unneeded NULL check for the allocated ifnet
Parents
rG0d8da0df4150: tcp_rack: avoid gcc -Werror=pointer-to-int-cast on 32-bit arch
Branches
Unknown
Tags
Unknown