From: Fan Zhang Date: Fri, 11 Dec 2015 11:29:11 +0000 (+0000) Subject: examples/ip_pipeline: fix parsing error code X-Git-Tag: spdx-start~7760 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=27e87b26d4758feff944654ab75ad24857427788;p=dpdk.git examples/ip_pipeline: fix parsing error code Coverity issue: 107136 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu Acked-by: John McNamara --- diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/config_parse.c index dbeb3a9718..1bedbe466f 100644 --- 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);