topology: save_config - fix the error path handling

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-10-19 11:02:29 +02:00
parent d77fb47318
commit 5c1cb568ec

View file

@ -395,9 +395,9 @@ retval:
err = tplg_save_quoted(dst, id);
} else {
err = tplg_save_string(dst, id, 1);
if (err < 0)
return err;
}
if (err < 0)
return err;
} else {
delim = "";
}