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

af_key: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().
Signed-off-by: default avatarWei Yongjun <>
Signed-off-by: default avatarDavid S. Miller <>
parent fbbfb986
......@@ -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)
return err;
......@@ -3573,7 +3572,6 @@ static int pfkey_sendmsg(struct kiocb *kiocb,
if (err && hdr && pfkey_error(hdr, err, sk) == 0)
err = 0;
if (skb)
return err ? : len;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment