topology: straight printf and error path fixes

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-10-19 11:17:21 +02:00
parent 5c1cb568ec
commit e91b1c0670
3 changed files with 15 additions and 13 deletions

View file

@ -483,7 +483,7 @@ int tplg_save_dapm_graph(snd_tplg_t *tplg, int index,
}
if (first) {
first = 0;
err = tplg_save_printf(dst, pfx, "\t\tlines [\n", elem->index);
err = tplg_save_printf(dst, pfx, "\t\tlines [\n");
if (err < 0)
return err;
}