tplg_parser: fix exit path

goto after return is incorrect since it generates unreachable code.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-04-20 13:53:40 -07:00 committed by Liam Girdwood
parent 30f7931c4e
commit f227ae7af2
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ int tplg_load_controls(int num_kcontrols, FILE *file)
/* load mixer type control */
read_size = sizeof(struct snd_soc_tplg_ctl_hdr);
if (fseek(file, (long)read_size * -1, SEEK_CUR)) {
return -errno;
ret = -errno;
goto err;
}