diff mbox series

ila_common.h: Remove redundant check for neutral-map-auto in ila_csum_name2mode function

Message ID 20240514205525.28342-1-ant.v.moryakov@gmail.com (mailing list archive)
State New, archived
Delegated to: David Ahern
Headers show
Series ila_common.h: Remove redundant check for neutral-map-auto in ila_csum_name2mode function | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Anton May 14, 2024, 8:55 p.m. UTC
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@gmail.com>
---
 ip/ila_common.h | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

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)