]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_dev.c
dev: fix attach proceeding with vdev on PCI success
[dpdk.git] / lib / librte_eal / common / eal_common_dev.c
index e10b9fd8506f79f1084c541e18411655fcb68050..d74f978f3b291ac1880fd77553fd1eda6ac95add 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;
 
        /*