examples/ip_pipeline: fix parsing error code
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 11 Dec 2015 11:29:11 +0000 (11:29 +0000)
committerThomas 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

index dbeb3a9..1bedbe4 100644 (file)
@@ -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(&param->burst_read,
                                ent->value);