pci: do not log false failures for non-whitelisted devices
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 4 Apr 2017 14:59:20 +0000 (15:59 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Apr 2017 21:13:06 +0000 (23:13 +0200)
commit2ed8fd9d1078b5b7c83e001297cb5f0e322a293c
tree8b7828708ebd369e4a1f8098a551e0abdf969182
parente9980a75735889190bb789c4281eb542ca79db81
pci: do not log false failures for non-whitelisted devices

If probe of the whitelisted PCI device fails, reset ret to zero
to silently skip non-whitelisted PCI devices.

Fixes: 10f6c93cea38 ("eal: do not panic on PCI failures")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_eal/common/eal_common_pci.c