summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 00:36:42 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-26 23:07:35 -0800
commitacb5d75b9bcff73d32d3471a9b3e9a4189223e48 (patch)
tree257fdec1475f66710f53a2f95786ae9dfabdc60e /net
parentce030edfb4ba6734248b8d9f98d0a6f1dcd142e7 (diff)
downloadop-kernel-dev-acb5d75b9bcff73d32d3471a9b3e9a4189223e48.zip
op-kernel-dev-acb5d75b9bcff73d32d3471a9b3e9a4189223e48.tar.gz
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')
-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 1fc4a78..d8cc006 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;
}
OpenPOWER on IntegriCloud