Page MenuHomeFreeBSD

Delete unreachable code
ClosedPublic

Authored by zlei on Apr 21 2023, 10:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 28, 11:47 AM
Unknown Object (File)
Mon, May 25, 4:07 PM
Unknown Object (File)
Thu, May 21, 9:06 AM
Unknown Object (File)
Thu, May 21, 12:31 AM
Unknown Object (File)
Wed, May 20, 5:09 AM
Unknown Object (File)
Wed, May 20, 4:57 AM
Unknown Object (File)
Sat, May 16, 10:30 PM
Unknown Object (File)
Wed, May 13, 9:23 PM

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 Not Applicable
Unit
Tests Not Applicable

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.