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

decnet: 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 f3fbbe0f
......@@ -2071,7 +2071,6 @@ static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
}
out:
if (skb)
kfree_skb(skb);
release_sock(sk);
......
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