Page MenuHomeFreeBSD

net80211: simplify an #ifdef INET/INET6 block
ClosedPublic

Authored by bz on Aug 31 2022, 10:39 PM.
Tags
None
Referenced Files
F102428176: D36411.diff
Tue, Nov 12, 3:33 AM
F102379177: D36411.diff
Mon, Nov 11, 11:22 AM
Unknown Object (File)
Mon, Nov 11, 2:01 AM
Unknown Object (File)
Thu, Nov 7, 7:37 AM
Unknown Object (File)
Tue, Nov 5, 8:42 PM
Unknown Object (File)
Thu, Oct 17, 3:02 PM
Unknown Object (File)
Wed, Oct 16, 3:36 AM
Unknown Object (File)
Mon, Oct 14, 11:28 PM

Details

Summary

I got lost in the #ifdef #endif here so I checked the code to a
switch block with two non-overlapping #ifdef parts and a default
which makes it a lot easier to read.

No functional changes.

Sponsored by: The FreeBSD Foundation
MFC after: 5 days

Test Plan

I would highly appreciate if people would carefully
double-check that I manually change-ifdefed it correctly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47228
Build 44115: arc lint + arc unit

Event Timeline

bz requested review of this revision.Aug 31 2022, 10:39 PM
zlei added inline comments.
sys/net80211/ieee80211_output.c
1289–1291

Missing break here.

1307

ditto

Add missing breaks. Thank you for care fully checking! :)

bz marked 2 inline comments as done.Sep 2 2022, 1:57 AM
This revision is now accepted and ready to land.Sep 2 2022, 3:58 AM
This revision was automatically updated to reflect the committed changes.