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)
Tue, Apr 1, 6:55 AM
Unknown Object (File)
Tue, Apr 1, 1:06 AM
Unknown Object (File)
Mar 19 2025, 5:11 PM
Unknown Object (File)
Mar 19 2025, 2:04 PM
Unknown Object (File)
Mar 17 2025, 7:25 AM
Unknown Object (File)
Mar 13 2025, 7:22 PM
Unknown Object (File)
Mar 9 2025, 7:57 PM
Unknown Object (File)
Mar 6 2025, 8:31 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.