mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
ipv4: 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> Signed-off-by: Jesse Chan <jc@linux.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
d94ce42d94
commit
eb686bd100
@ -191,8 +191,7 @@ out:
|
||||
spin_unlock(&qp->q.lock);
|
||||
out_rcu_unlock:
|
||||
rcu_read_unlock();
|
||||
if (head)
|
||||
kfree_skb(head);
|
||||
kfree_skb(head);
|
||||
ipq_put(qp);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user