Page MenuHomeFreeBSD

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

Authored by bz on Feb 19 2025, 12:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 21, 12:52 PM
Unknown Object (File)
Sun, Aug 17, 8:58 PM
Unknown Object (File)
Fri, Aug 15, 1:11 AM
Unknown Object (File)
Thu, Aug 7, 3:54 PM
Unknown Object (File)
Mon, Aug 4, 8:35 PM
Unknown Object (File)
Jul 27 2025, 7:05 PM
Unknown Object (File)
Jul 19 2025, 3:08 AM
Unknown Object (File)
Jul 13 2025, 3:07 AM

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.