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 |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local 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)
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(-)