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

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

ipv6: 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 673eed0c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -468,11 +468,9 @@ void inet6_destroy_sock(struct sock *sk)
	/* Release rx options */

	skb = xchg(&np->pktoptions, NULL);
	if (skb)
	kfree_skb(skb);

	skb = xchg(&np->rxpmtu, NULL);
	if (skb)
	kfree_skb(skb);

	/* Free flowlabels */