lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 14 May 2024 23:55:24 +0300
From: Anton <ant.v.moryakov@...il.com>
To: stephen@...workplumber.org
Cc: netdev@...r.kernel.org,
	Anton <ant.v.moryakov@...il.com>
Subject: [PATCH] ila_common.h: Remove redundant check for neutral-map-auto in ila_csum_name2mode function

The neutral-map-auto option was already handled correctly in the
switch statement of the ila_csum_name2mode function. Removing the
redundant check for neutral-map-auto simplifies the code without
changing its behavior.

Signed-off-by: Anton <ant.v.moryakov@...il.com>
---
 ip/ila_common.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ip/ila_common.h b/ip/ila_common.h
index f99c2672..ebc2f064 100644
--- a/ip/ila_common.h
+++ b/ip/ila_common.h
@@ -27,8 +27,6 @@ static inline int ila_csum_name2mode(char *name)
 		return ILA_CSUM_ADJUST_TRANSPORT;
 	else if (strcmp(name, "neutral-map") == 0)
 		return ILA_CSUM_NEUTRAL_MAP;
-	else if (strcmp(name, "neutral-map-auto") == 0)
-		return ILA_CSUM_NEUTRAL_MAP_AUTO;
 	else if (strcmp(name, "no-action") == 0)
 		return ILA_CSUM_NO_ACTION;
 	else if (strcmp(name, "neutral-map-auto") == 0)
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ