]> git.ipfire.org Git - thirdparty/iproute2.git/commit
f_flower: Remove always zero checks
authorMaks Mishin <maks.mishinfz@gmail.com>
Sun, 7 Jul 2024 17:27:41 +0000 (20:27 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 17 Jul 2024 23:47:57 +0000 (16:47 -0700)
commitb06341a252a815820c1bbacedec0c158dd80aac8
tree12985a4f6e01d04550d4356f080111bad69a2dfe
parent4917f98a6475540878bc900e8c5e73c5bc77767b
f_flower: Remove always zero checks

Expression 'ttl & ~(255 >> 0)' is always zero, because right operand
has 8 trailing zero bits, which is greater or equal than the size
of the left operand == 8 bits.

Found by RASU JSC.

Signed-off-by: Maks Mishin <maks.mishinFZ@gmail.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/f_flower.c