Page MenuHomeFreeBSD

net80211: crypto: ccmp: simplify and style(9)
ClosedPublic

Authored by bz on Feb 19 2025, 12:32 PM.
Tags
None
Referenced Files
F165180525: D49055.id151259.diff
Thu, Aug 6, 2:28 PM
F165144744: D49055.id151176.diff
Thu, Aug 6, 9:34 AM
Unknown Object (File)
Wed, Aug 5, 8:15 AM
Unknown Object (File)
Wed, Aug 5, 5:55 AM
Unknown Object (File)
Sun, Jul 26, 3:40 PM
Unknown Object (File)
Fri, Jul 24, 2:49 PM
Unknown Object (File)
Fri, Jul 24, 5:13 AM
Unknown Object (File)
Tue, Jul 21, 2:23 PM

Details

Summary

Add checks for booleaness of flag tests.
If there is no need for double negated checks simplify them.
This all makes the conditions a lot easier to read.

No functional changes.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Feb 19 2025, 12:32 PM
emaste added a subscriber: emaste.

๐Ÿ‘ from De Morgan.

Maybe make the subject "simplify and style(9)", at first glance I was looking for another change in the first one other than just adding != 0

This revision is now accepted and ready to land.Feb 19 2025, 1:43 PM

๐Ÿ‘ from De Morgan.

Maybe make the subject "simplify and style(9)", at first glance I was looking for another change in the first one other than just adding != 0

Will do. Thanks.

bz retitled this revision from net80211: crypto: ccmp: simplify checks to net80211: crypto: ccmp: simplify and style(9).Feb 19 2025, 1:57 PM
This revision was automatically updated to reflect the committed changes.