diff options
author | zhong jiang | 2018-09-20 22:27:28 +0800 |
---|---|---|
committer | David S. Miller | 2018-09-21 09:09:22 -0700 |
commit | 66ab23598696072c19344591f8d9846332e66e23 (patch) | |
tree | a45d86dadbd10bab9f2c5269e962281684f348db /drivers/isdn/mISDN | |
parent | 8a1aff144d37af492034a9a11a8c6ad3b687a441 (diff) |
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>
Diffstat (limited to 'drivers/isdn/mISDN')
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index 18c0a1281914..15d3ca37669a 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c @@ -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; } |