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)

Details

Provenance
zleiAuthored on Apr 23 2023, 4:47 AM
Reviewer
rG6d8fdfa9d5e7: Rework IP encapsulation handling code.
Differential Revision
D39746: Delete unreachable code
Parents
rGd9ecb62798da: nfs_fha_new: Fix nfs_fha_new so that sysctls work in prisons
Branches
Unknown
Tags
Unknown