ethdev: remove duplicate interrupt handle copy
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>
This commit is contained in:
parent
b05b444d22
commit
ffae3ab3b7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user