]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_options.c
eal: fix pedantic build of mlx4 debug mode
[dpdk.git] / lib / librte_eal / common / eal_common_options.c
index 8fcb1abeca5aa7d21b6c7d981702c13e99e552c5..1f459accd3b11f326d77e1df452c43312741536c 100644 (file)
@@ -850,9 +850,8 @@ eal_check_common_options(struct internal_config *internal_cfg)
                        "be specified at the same time\n");
                return -1;
        }
-       if (internal_cfg->no_hugetlbfs &&
-                       (mem_parsed || internal_cfg->force_sockets == 1)) {
-               RTE_LOG(ERR, EAL, "Options -m or --"OPT_SOCKET_MEM" cannot "
+       if (internal_cfg->no_hugetlbfs && internal_cfg->force_sockets == 1) {
+               RTE_LOG(ERR, EAL, "Option --"OPT_SOCKET_MEM" cannot "
                        "be specified together with --"OPT_NO_HUGE"\n");
                return -1;
        }