diff options
author | Phil Sutter <phil@nwl.cc> | 2020-12-19 02:21:44 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-03-09 14:23:13 +0100 |
commit | 743926643287de4bfc2a460585fc2f7ba9ce8490 (patch) | |
tree | 8c95d8eb33ec22ee9af0f0a4a7b8de40a733390a | |
parent | 100708a7e720e17a7c46a6d414ec3fb663ee01aa (diff) |
expr/tunnel: Kill dead code
Function str2tunnel_key() was never used.
Fixes: 42468fb6df61a ("expr: add support for matching tunnel metadata")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/expr/tunnel.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/expr/tunnel.c b/src/expr/tunnel.c index b2b8d72..62e1648 100644 --- a/src/expr/tunnel.c +++ b/src/expr/tunnel.c @@ -124,19 +124,6 @@ static const char *tunnel_key2str(uint8_t key) return "unknown"; } -static inline int str2tunnel_key(const char *str) -{ - int i; - - for (i = 0; i <= NFT_TUNNEL_MAX; i++) { - if (strcmp(str, tunnel_key2str_array[i]) == 0) - return i; - } - - errno = EINVAL; - return -1; -} - static int nftnl_expr_tunnel_snprintf_default(char *buf, size_t len, const struct nftnl_expr *e) |