Skip to content

kernel-6.12.45

Compare
Choose a tag to compare
@sbwml sbwml released this 05 Sep 00:44
· 2 commits to main since this release
bbr3: silence -Wconstant-logical-operand

The `ecn_thresh` and `ecn_factor` params are just consts in a public
version of BBRv3, so evaluating them in conditions as booleans triggers
`-Wconstant-logical-operand` with Clang.

Prepend relevant invocations with double negation to convert values to
booleans explicitly.

The values are always `true`, so these parts of conditions can also be
dropped. Keeping them instead since they are used in an internal version
of BBRv3 to stay as close to the original code as possible.

Signed-off-by: sbwml <[email protected]>