From: Jaroslav Kysela Date: Fri, 28 Jan 2022 17:07:46 +0000 (+0100) Subject: topology: don't fail when Define section is missing in the included file X-Git-Tag: v1.2.7~20 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a9b35252b4b82f05bf80a39e212b61a51e6fef30;p=alsa-utils.git topology: don't fail when Define section is missing in the included file Signed-off-by: Jaroslav Kysela --- diff --git a/topology/pre-processor.c b/topology/pre-processor.c index 5278240..f32f80c 100644 --- a/topology/pre-processor.c +++ b/topology/pre-processor.c @@ -409,7 +409,7 @@ static int pre_process_include_conf(struct tplg_pre_processor *tplg_pp, snd_conf /* forcefully overwrite with defines from the command line */ ret = pre_process_add_defines(tplg_pp, *new); - if (ret < 0) { + if (ret < 0 && ret != -ENOENT) { fprintf(stderr, "Failed to parse arguments in input config\n"); goto err; }