summaryrefslogtreecommitdiffstats
path: root/net/packet/af_packet.c
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 01:36:42 +0100
committerDavid S. Miller <davem@davemloft.net>2009-02-27 08:07:35 +0100
commitacb5d75b9bcff73d32d3471a9b3e9a4189223e48 (patch)
tree257fdec1475f66710f53a2f95786ae9dfabdc60e /net/packet/af_packet.c
parentcan: remove some pointless conditionals before kfree_skb() (diff)
downloadlinux-acb5d75b9bcff73d32d3471a9b3e9a4189223e48.tar.xz
linux-acb5d75b9bcff73d32d3471a9b3e9a4189223e48.zip
packet: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r--net/packet/af_packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 1fc4a7885c41..d8cc006fac45 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;
}