ethdev: remove duplicate interrupt handle copy
authorZhiyong Yang <zhiyong.yang@intel.com>
Fri, 28 Jul 2017 08:10:14 +0000 (16:10 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 31 Jul 2017 15:04:11 +0000 (17:04 +0200)
The code eth_dev->intr_handle = &dev->intr_handle; has duplicate code
in the function rte_eth_copy_pci_info(), remove it here.

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_ether/rte_ethdev_pci.h

index c3f7f72..fe2e0f6 100644 (file)
@@ -117,7 +117,6 @@ rte_eth_dev_pci_allocate(struct rte_pci_device *dev, size_t private_data_size)
        }
 
        eth_dev->device = &dev->device;
-       eth_dev->intr_handle = &dev->intr_handle;
        rte_eth_copy_pci_info(eth_dev, dev);
        return eth_dev;
 }