dev: fix attach proceeding with vdev on PCI success
[dpdk.git] / lib / librte_eal / common / eal_common_dev.c
index e10b9fd..d74f978 100644 (file)
@@ -74,7 +74,7 @@ int rte_eal_dev_attach(const char *name, const char *devargs)
        }
 
        ret = rte_eal_hotplug_add("pci", name, devargs);
-       if (ret && ret != -EINVAL)
+       if (ret != -EINVAL)
                return ret;
 
        /*