]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: remove duplicate condition in ila_csum_name2mode in
authorAnton Moryakov <ant.v.moryakov@gmail.com>
Mon, 17 Feb 2025 16:21:52 +0000 (19:21 +0300)
committerDavid Ahern <dsahern@kernel.org>
Wed, 19 Feb 2025 15:46:50 +0000 (15:46 +0000)
commit46bbbaf1149a375de809ca57edb1dfeaad529d7d
tree7519d3d6a071f6675227628d4159f2cb5337ed5f
parent55446264e60622e3f1ee9d51f5acce5536a648bf
ip: remove duplicate condition in ila_csum_name2mode in

Static analyzer reported:
expression is identical to previous conditio

Corrections explained:
The condition checking for "neutral-map-auto" was duplicated in the
ila_csum_name2mode function. This commit removes the redundant check
to improve code readability and maintainability.

Triggers found by static analyzer Svace.

Signed-off-by: Anton Moryakov <ant.v.moryakov@gmail.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ila_common.h