HomeFreeBSD

if_stf: Delete unreachable code

Description

if_stf: Delete unreachable code

As the flag M_WAITOK is passed to ip_encap_attach(), then the function
will never return NULL, and the following code within NULL check branch
will be unreachable.

No functional change intended.

Reviewed by: kp
Fixes: 6d8fdfa9d5e7d Rework IP encapsulation handling code
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39746

(cherry picked from commit c373e1d6adbc3785e8f1072cdc4a062733baa514)
(cherry picked from commit f70caf1b4524c10d3a747770c69da9d7b6a56a22)

Details

Provenance
zleiAuthored on Apr 23 2023, 4:47 AM
Reviewer
rG6d8fdfa9d5e7: Rework IP encapsulation handling code.
Differential Revision
D39746: Delete unreachable code
Parents
rG5cb5b368829d: e1000: fix VLAN 0
Branches
Unknown
Tags
Unknown