Page MenuHomeFreeBSD

Delete unreachable code
ClosedPublic

Authored by zlei on Apr 21 2023, 10:03 AM.
Tags
None
Referenced Files
F131579607: D39746.id120884.diff
Thu, Oct 9, 11:16 AM
F131571191: D39746.diff
Thu, Oct 9, 9:14 AM
F131569461: D39746.id120806.diff
Thu, Oct 9, 8:50 AM
F131569302: D39746.diff
Thu, Oct 9, 8:48 AM
F131569293: D39746.id120797.diff
Thu, Oct 9, 8:48 AM
Unknown Object (File)
Fri, Oct 3, 12:56 AM
Unknown Object (File)
Fri, Oct 3, 12:27 AM
Unknown Object (File)
Sun, Sep 21, 12:42 AM

Details

Summary

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.

Fixes: 6d8fdfa9d5e7d Rework IP encapsulation handling code
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

zlei requested review of this revision.Apr 21 2023, 10:03 AM
zlei edited the summary of this revision. (Show Details)
zlei retitled this revision from if_stf: Delete unreachable code to Delete unreachable code.

I'd like to commit them separately.

This revision is now accepted and ready to land.Apr 21 2023, 11:11 AM
This revision was automatically updated to reflect the committed changes.