Page MenuHomeFreeBSD

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

Authored by bz on Wed, Feb 19, 12:32 PM.
Tags
None
Referenced Files
F112540191: D49055.diff
Wed, Mar 19, 2:04 PM
Unknown Object (File)
Mon, Mar 17, 7:25 AM
Unknown Object (File)
Thu, Mar 13, 7:22 PM
Unknown Object (File)
Sun, Mar 9, 7:57 PM
Unknown Object (File)
Thu, Mar 6, 8:31 PM
Unknown Object (File)
Thu, Mar 6, 5:54 PM
Unknown Object (File)
Thu, Mar 6, 5:26 PM
Unknown Object (File)
Thu, Mar 6, 1:03 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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 62513
Build 59397: arc lint + arc unit

Event Timeline

bz requested review of this revision.Wed, Feb 19, 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.Wed, Feb 19, 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).Wed, Feb 19, 1:57 PM
This revision was automatically updated to reflect the committed changes.