Commit 673eed0c authored by zhong jiang's avatar zhong jiang Committed by David S. Miller

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: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3c3215e
...@@ -3422,7 +3422,6 @@ static void remove_one(struct pci_dev *pdev) ...@@ -3422,7 +3422,6 @@ static void remove_one(struct pci_dev *pdev)
free_netdev(adapter->port[i]); free_netdev(adapter->port[i]);
iounmap(adapter->regs); iounmap(adapter->regs);
if (adapter->nofail_skb)
kfree_skb(adapter->nofail_skb); kfree_skb(adapter->nofail_skb);
kfree(adapter); kfree(adapter);
pci_release_regions(pdev); pci_release_regions(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment