Skip to content

kernel-6.12.35

Compare
Choose a tag to compare
@sbwml sbwml released this 28 Jun 00:47
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]>