mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
net: cxgb3: 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>
This commit is contained in:
parent
144a6adfa1
commit
16a3f50f05
@ -1302,7 +1302,6 @@ void cxgb3_offload_deactivate(struct adapter *adapter)
|
||||
rcu_read_unlock();
|
||||
RCU_INIT_POINTER(tdev->l2opt, NULL);
|
||||
call_rcu(&d->rcu_head, clean_l2_data);
|
||||
if (t->nofail_skb)
|
||||
kfree_skb(t->nofail_skb);
|
||||
kfree(t);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user