examples/ip_pipeline: fix parsing error code

Coverity issue: 107136
Fixes: 7f64b9c004 ("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>
This commit is contained in:
Fan Zhang 2015-12-11 11:29:11 +00:00 committed by Thomas Monjalon
parent fa843ff265
commit 27e87b26d4

View File

@ -1631,8 +1631,8 @@ parse_tm(struct app_params *app,
param->file_name = strdup(ent->value); param->file_name = strdup(ent->value);
if (param->file_name == NULL) if (param->file_name == NULL)
ret = -EINVAL; ret = -EINVAL;
else
ret = 0; ret = 0;
} else if (strcmp(ent->name, "burst_read") == 0) } else if (strcmp(ent->name, "burst_read") == 0)
ret = parser_read_uint32(&param->burst_read, ret = parser_read_uint32(&param->burst_read,
ent->value); ent->value);