Commit 1a0e880b authored by Stefan Assmann's avatar Stefan Assmann Committed by Tony Nguyen

iavf: remove duplicate free resources calls

Both iavf_free_all_tx_resources() and iavf_free_all_rx_resources() have
already been called in the very same function.
Remove the duplicate calls.
Signed-off-by: default avatarStefan Assmann <sassmann@kpanic.de>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 5c208e9f
...@@ -3940,8 +3940,6 @@ static void iavf_remove(struct pci_dev *pdev) ...@@ -3940,8 +3940,6 @@ static void iavf_remove(struct pci_dev *pdev)
iounmap(hw->hw_addr); iounmap(hw->hw_addr);
pci_release_regions(pdev); pci_release_regions(pdev);
iavf_free_all_tx_resources(adapter);
iavf_free_all_rx_resources(adapter);
iavf_free_queues(adapter); iavf_free_queues(adapter);
kfree(adapter->vf_res); kfree(adapter->vf_res);
spin_lock_bh(&adapter->mac_vlan_list_lock); spin_lock_bh(&adapter->mac_vlan_list_lock);
......
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