mirror of https://github.com/thesofproject/sof.git
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:
parent
30f7931c4e
commit
f227ae7af2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue