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

Commit 66ab2359 authored by zhong jiang's avatar zhong jiang Committed by David S. Miller
Browse files

mISDN: remove redundant null pointer check before kfree_skb



kfree_skb has taken the null pointer into account. hence it is safe
to remove the redundant null pointer check before kfree_skb.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8a1aff14
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -236,7 +236,6 @@ mISDN_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
	}

done:
	if (skb)
	kfree_skb(skb);
	release_sock(sk);
	return err;