From e381cd99e9eb0e9519a976c8288f6b9e051ada3a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 12 Aug 2016 01:33:36 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/expr/limit.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3