diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-08-27 23:14:15 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-09-09 14:33:57 -0400 |
commit | a67299556ea1aa56daaeb985fd32295dacecba1a (patch) | |
tree | 55656c070c8b8e854474e7e4e9093cfdbd2e722e | |
parent | 5693d68df6883f039d24a4ce8b23ac48f94a73e5 (diff) |
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>
-rw-r--r-- | net/netfilter/nfnetlink_queue_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c index c0496a55ad0c..5c2d78d3a4d8 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, | |||
406 | return skb; | 406 | return skb; |
407 | 407 | ||
408 | nla_put_failure: | 408 | nla_put_failure: |
409 | if (skb) | 409 | kfree_skb(skb); |
410 | kfree_skb(skb); | ||
411 | net_err_ratelimited("nf_queue: error creating packet message\n"); | 410 | net_err_ratelimited("nf_queue: error creating packet message\n"); |
412 | return NULL; | 411 | return NULL; |
413 | } | 412 | } |