From 27e87b26d4758feff944654ab75ad24857427788 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Fri, 11 Dec 2015 11:29:11 +0000 Subject: [PATCH] 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 --- examples/ip_pipeline/config_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1