1
0
Fork 0

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: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
zhong jiang 2018-09-20 22:27:28 +08:00 committed by David S. Miller
parent 8a1aff144d
commit 66ab235986
1 changed files with 1 additions and 2 deletions

View File

@ -236,8 +236,7 @@ mISDN_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
}
done:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
release_sock(sk);
return err;
}