netfilter: nf_tables: remove unused variables
authorTaehee Yoo <ap420073@gmail.com>
Mon, 28 May 2018 16:15:27 +0000 (01:15 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 May 2018 12:50:29 +0000 (14:50 +0200)
The comment and trace_loginfo are not used anymore.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c

index 0548cd50ec26e163d94a4064d0c084c744647c3c..47cf667b15caca4bf8321584e6bf8f63ac62d222 100644 (file)
 #include <net/netfilter/nf_tables.h>
 #include <net/netfilter/nf_log.h>
 
-static const char *const comments[__NFT_TRACETYPE_MAX] = {
-       [NFT_TRACETYPE_POLICY]  = "policy",
-       [NFT_TRACETYPE_RETURN]  = "return",
-       [NFT_TRACETYPE_RULE]    = "rule",
-};
-
-static const struct nf_loginfo trace_loginfo = {
-       .type = NF_LOG_TYPE_LOG,
-       .u = {
-               .log = {
-                       .level = LOGLEVEL_WARNING,
-                       .logflags = NF_LOG_DEFAULT_MASK,
-               },
-       },
-};
-
 static noinline void __nft_trace_packet(struct nft_traceinfo *info,
                                        const struct nft_chain *chain,
                                        enum nft_trace_types type)