devtools: pass custom options to checkpatch
[dpdk.git] / lib / librte_ethdev / rte_ethdev_pci.h
index 70d2d25..23257e9 100644 (file)
@@ -135,23 +135,6 @@ rte_eth_dev_pci_allocate(struct rte_pci_device *dev, size_t private_data_size)
 static inline void
 rte_eth_dev_pci_release(struct rte_eth_dev *eth_dev)
 {
-       if (rte_eal_process_type() != RTE_PROC_PRIMARY) {
-               eth_dev->device = NULL;
-               eth_dev->intr_handle = NULL;
-               rte_eth_dev_release_port_secondary(eth_dev);
-               return;
-       }
-
-       /* primary process */
-       rte_free(eth_dev->data->dev_private);
-       eth_dev->data->dev_private = NULL;
-
-       /*
-        * Secondary process will check the name to attach.
-        * Clear this field to avoid attaching a released ports.
-        */
-       eth_dev->data->name[0] = '\0';
-
        eth_dev->device = NULL;
        eth_dev->intr_handle = NULL;