From: Wei Yongjun Date: Wed, 25 Feb 2009 00:36:42 +0000 (+0000) Subject: packet: remove some pointless conditionals before kfree_skb() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=acb5d75b9bcff73d32d3471a9b3e9a4189223e48;p=linux-2.6-omap-h63xx.git packet: remove some pointless conditionals before kfree_skb() Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 1fc4a7885c4..d8cc006fac4 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -756,8 +756,7 @@ ring_is_full: spin_unlock(&sk->sk_receive_queue.lock); sk->sk_data_ready(sk, 0); - if (copy_skb) - kfree_skb(copy_skb); + kfree_skb(copy_skb); goto drop_n_restore; }