eal/linux: remove unnecessary check for primary instance
In pci_uio_map_resource we check that we are in a primary process before calling pci_uio_set_bus_master. However, there is already an earlier check which means that we are always in a primary instance at this point in the code, so the check can be removed. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: David Marchand <david.marchand@6wind.com>
This commit is contained in:
parent
0fbbb63fbf
commit
54991196e8
@ -304,11 +304,9 @@ pci_uio_map_resource(struct rte_pci_device *dev)
|
||||
}
|
||||
|
||||
/* set bus master that is not done by uio_pci_generic */
|
||||
if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
|
||||
if (pci_uio_set_bus_master(dev->intr_handle.uio_cfg_fd)) {
|
||||
RTE_LOG(ERR, EAL, "Cannot set up bus mastering!\n");
|
||||
return -1;
|
||||
}
|
||||
if (pci_uio_set_bus_master(dev->intr_handle.uio_cfg_fd)) {
|
||||
RTE_LOG(ERR, EAL, "Cannot set up bus mastering!\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* allocate the mapping details for secondary processes*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user