mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
netfilter: nft_ct: fix compilation warning if NF_CONNTRACK_MARK is not set
net/netfilter/nft_ct.c: In function 'nft_ct_set_eval': net/netfilter/nft_ct.c:136:6: warning: unused variable 'value' [-Wunused-variable] Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
419331d8ff
commit
847c8e2959
@ -133,7 +133,9 @@ static void nft_ct_set_eval(const struct nft_expr *expr,
|
||||
{
|
||||
const struct nft_ct *priv = nft_expr_priv(expr);
|
||||
struct sk_buff *skb = pkt->skb;
|
||||
#ifdef CONFIG_NF_CONNTRACK_MARK
|
||||
u32 value = data[priv->sreg].data[0];
|
||||
#endif
|
||||
enum ip_conntrack_info ctinfo;
|
||||
struct nf_conn *ct;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user