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
Paths
| Differential D49055 Authored by bz on Feb 19 2025, 12:32 PM.
Details
Summary Add checks for booleaness of flag tests. No functional changes. Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineHerald added subscribers: glebius, melifaro, imp. · View Herald TranscriptFeb 19 2025, 12:32 PM2025-02-19 12:32:37 (UTC+0) Harbormaster completed remote builds in B62513: Diff 151176.Feb 19 2025, 12:32 PM2025-02-19 12:32:40 (UTC+0) Comment Actions 👍 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 PM2025-02-19 13:43:12 (UTC+0) Comment Actions
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 PM2025-02-19 13:57:20 (UTC+0) Closed by commit rG8dcdffdb0861: net80211: crypto: ccmp: simplify and style(9) (authored by bz). · Explain WhyFeb 20 2025, 6:05 PM2025-02-20 18:05:35 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 151259 sys/net80211/ieee80211_crypto_ccmp.c
|
Why can't this entire switch statement just be feed_matrix_apply(info, src, dst, j, info->fmt);?