diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-02-25 03:36:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 10:07:35 +0300 |
commit | acb5d75b9bcff73d32d3471a9b3e9a4189223e48 (patch) | |
tree | 257fdec1475f66710f53a2f95786ae9dfabdc60e /net/packet/af_packet.c | |
parent | ce030edfb4ba6734248b8d9f98d0a6f1dcd142e7 (diff) | |
download | linux-acb5d75b9bcff73d32d3471a9b3e9a4189223e48.tar.xz |
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.c | 3 |
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; } |