Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f961068 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

af_key: remove some pointless conditionals before kfree_skb()



Remove some pointless conditionals before kfree_skb().

Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fbbfb986
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -313,7 +313,6 @@ static int pfkey_broadcast(struct sk_buff *skb, gfp_t allocation,
	if (one_sk != NULL)
		err = pfkey_broadcast_one(skb, &skb2, allocation, one_sk);

	if (skb2)
	kfree_skb(skb2);
	kfree_skb(skb);
	return err;
@@ -3573,7 +3572,6 @@ static int pfkey_sendmsg(struct kiocb *kiocb,
out:
	if (err && hdr && pfkey_error(hdr, err, sk) == 0)
		err = 0;
	if (skb)
	kfree_skb(skb);

	return err ? : len;