Skip to content

Commit

Permalink
netfilter: nfnetlink_queue: remove pointless conditional before kfree…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Wei Yongjun authored and Pablo Neira Ayuso committed Sep 9, 2012
1 parent 5693d68 commit a672995
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/netfilter/nfnetlink_queue_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a672995

Please sign in to comment.