git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples: fix port mask parsing failure handling
[dpdk.git]
/
examples
/
ioat
/
ioatfwd.c
diff --git
a/examples/ioat/ioatfwd.c
b/examples/ioat/ioatfwd.c
index
b66ee73
..
75d8d5b
100644
(file)
--- a/
examples/ioat/ioatfwd.c
+++ b/
examples/ioat/ioatfwd.c
@@
-584,7
+584,7
@@
ioat_parse_portmask(const char *portmask)
/* Parse hexadecimal string */
pm = strtoul(portmask, &end, 16);
if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0'))
- return
-1
;
+ return
0
;
return pm;
}