eal/linux: remove unnecessary check for primary instance
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 24 Feb 2015 13:30:47 +0000 (13:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 21:34:06 +0000 (22:34 +0100)
commit54991196e849c78bc66ff88982677a9ed608cd03
tree3bdb69be88e001d3b5603d44a0fbf947cc2458cc
parent0fbbb63fbf6cd35c0f2a85a4c5c8fabc2165cef8
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>
lib/librte_eal/linuxapp/eal/eal_pci_uio.c