From: Wei Yongjun Date: Tue, 28 Aug 2012 03:14:15 +0000 (+0000) Subject: netfilter: nfnetlink_queue: remove pointless conditional before kfree_skb() X-Git-Tag: v3.7-rc1~145^2~177^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a67299556ea1aa56daaeb985fd32295dacecba1a;p=platform%2Fkernel%2Flinux-3.10.git netfilter: nfnetlink_queue: remove pointless conditional before kfree_skb() Remove pointless conditional before kfree_skb(). Signed-off-by: Wei Yongjun Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c index c0496a5..5c2d78d 100644 --- a/net/netfilter/nfnetlink_queue_core.c +++ b/net/netfilter/nfnetlink_queue_core.c @@ -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; }