netfilter: nfnetlink_queue: remove pointless conditional before kfree_skb()

Remove pointless conditional before kfree_skb().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Wei Yongjun 2012-08-28 03:14:15 +00:00 committed by Pablo Neira Ayuso
parent 5693d68df6
commit a67299556e
1 changed files with 1 additions and 2 deletions

View File

@ -406,8 +406,7 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue,
return skb;
nla_put_failure:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
net_err_ratelimited("nf_queue: error creating packet message\n");
return NULL;
}