X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvmdq%2Fmain.c;fp=examples%2Fvmdq%2Fmain.c;h=660be4011e1634db9847b02e7e58e16821970569;hb=ce6b8c31548b4d71a986d9807cd06cf3a616d1ab;hp=d08826c868f8dd047ec0f023bfec58ff73343892;hpb=98ffdfbcf1ea8f4705fa3dacd6d9ae94d3705733;p=dpdk.git diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c index d08826c868..660be4011e 100644 --- a/examples/vmdq/main.c +++ b/examples/vmdq/main.c @@ -370,10 +370,7 @@ parse_portmask(const char *portmask) /* parse hexadecimal string */ pm = strtoul(portmask, &end, 16); if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0')) - return -1; - - if (pm == 0) - return -1; + return 0; return pm; }