net: cxgb3_main: 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
e3c3215e41
commit
673eed0c18
|
@ -3422,8 +3422,7 @@ static void remove_one(struct pci_dev *pdev)
|
|||
free_netdev(adapter->port[i]);
|
||||
|
||||
iounmap(adapter->regs);
|
||||
if (adapter->nofail_skb)
|
||||
kfree_skb(adapter->nofail_skb);
|
||||
kfree_skb(adapter->nofail_skb);
|
||||
kfree(adapter);
|
||||
pci_release_regions(pdev);
|
||||
pci_disable_device(pdev);
|
||||
|
|
Loading…
Reference in New Issue