netlink: 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>
This commit is contained in:
Wei Yongjun 2009-02-25 00:34:41 +00:00 committed by David S. Miller
parent 40d44446cf
commit 91744f6559
1 changed files with 2 additions and 4 deletions

View File

@ -1049,7 +1049,6 @@ int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 pid,
netlink_unlock_table();
if (info.skb2)
kfree_skb(info.skb2);
if (info.delivery_failure)
@ -1542,7 +1541,6 @@ EXPORT_SYMBOL(netlink_set_nonroot);
static void netlink_destroy_callback(struct netlink_callback *cb)
{
if (cb->skb)
kfree_skb(cb->skb);
kfree(cb);
}