kni: various changes
[dpdk.git] / lib / librte_eal / linuxapp / kni / ethtool / igb / igb_main.c
index bb87451..f0728bb 100644 (file)
@@ -9146,15 +9146,6 @@ err_alloc_etherdev:
 
 void igb_kni_remove(struct pci_dev *pdev)
 {
-       struct net_device *netdev = pci_get_drvdata(pdev);
-       struct igb_adapter *adapter = netdev_priv(netdev);
-       struct e1000_hw *hw = &adapter->hw;
-
-       iounmap(hw->hw_addr);
-
-       if (hw->flash_address)
-               iounmap(hw->flash_address);
-
        pci_disable_device(pdev);
 }