]> git.droids-corp.org - dpdk.git/blobdiff - examples/distributor/main.c
doc: add patch dependency syntax to contributing guide
[dpdk.git] / examples / distributor / main.c
index 567c5e98919d0a998882ff7875aa334ecdd1d7e8..dca48c2abd7d33110e84638305b03f9817ba39a3 100644 (file)
@@ -647,10 +647,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;
 }