git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa843ff
)
examples/ip_pipeline: fix parsing error code
author
Fan Zhang
<roy.fan.zhang@intel.com>
Fri, 11 Dec 2015 11:29:11 +0000
(11:29 +0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Sun, 13 Dec 2015 01:39:24 +0000
(
02:39
+0100)
Coverity issue: 107136
Fixes:
7f64b9c004aa
("examples/ip_pipeline: rework config file syntax")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
examples/ip_pipeline/config_parse.c
patch
|
blob
|
history
diff --git
a/examples/ip_pipeline/config_parse.c
b/examples/ip_pipeline/config_parse.c
index
dbeb3a9
..
1bedbe4
100644
(file)
--- a/
examples/ip_pipeline/config_parse.c
+++ b/
examples/ip_pipeline/config_parse.c
@@
-1631,8
+1631,8
@@
parse_tm(struct app_params *app,
param->file_name = strdup(ent->value);
if (param->file_name == NULL)
ret = -EINVAL;
-
- ret = 0;
+ else
+
ret = 0;
} else if (strcmp(ent->name, "burst_read") == 0)
ret = parser_read_uint32(¶m->burst_read,
ent->value);