diff options
author | Phil Sutter <phil@nwl.cc> | 2016-08-12 01:33:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-12 01:45:40 +0200 |
commit | e381cd99e9eb0e9519a976c8288f6b9e051ada3a (patch) | |
tree | 16c52136adbb7e1b9d7645b212efcadeff170e43 /src/expr | |
parent | cca54d5e9c3f436cd85bc55415c08bf671bfefe6 (diff) |
expr/limit: Drop unreachable code in limit_to_type()
The function returns from inside the switch() in any case, so the final
return statement is never reached.
Fixes: 7769cbd9dfe69 ("expr: limit: add per-byte limiting support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr')
-rw-r--r-- | src/expr/limit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/expr/limit.c b/src/expr/limit.c index 4bd096e..cdff81d 100644 --- a/src/expr/limit.c +++ b/src/expr/limit.c @@ -259,7 +259,6 @@ static const char *limit_to_type(enum nft_limit_type type) case NFT_LIMIT_PKT_BYTES: return "bytes"; } - return "unknown"; } static int nftnl_expr_limit_snprintf_default(char *buf, size_t len, |