pci: fix probing error if no driver found

The rte_eal_pci_probe_one function could return false positive result if
no driver is found for the device.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Acked-by: David Marchand <david.marchand@6wind.com>
This commit is contained in:
Igor Ryzhov 2016-08-04 14:50:06 +03:00 committed by Thomas Monjalon
parent d82eeefe7a
commit 25c62ca4eb

@ -361,7 +361,7 @@ rte_eal_pci_probe_one(const struct rte_pci_addr *addr)
continue;
ret = pci_probe_all_drivers(dev);
if (ret < 0)
if (ret)
goto err_return;
return 0;
}