ipv6: Remove some pointless conditionals before kfree_skb()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 23 Feb 2009 21:45:33 +0000 (21:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Feb 2009 07:33:52 +0000 (23:33 -0800)
commit800d55f146098c5ffd1914d7eef2fd4a6d558b1d
treeced8debeb88c78eb677c7842ea312be09caf21de
parent1ce85fe402137824246bad03ff85f3913d565c17
ipv6: Remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().

The semantic match that finds the problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression E;
@@
- if (E)
-  kfree_skb(E);
+ kfree_skb(E);
// </smpl>

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c
net/ipv6/tcp_ipv6.c