Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus

This commit is contained in:
Mark Brown 2017-01-10 10:47:48 +00:00
commit df3c63d39d
1 changed files with 1 additions and 3 deletions

View File

@ -1030,10 +1030,8 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
return -ENOMEM;
ret = snd_ctl_add(card, kctrl);
if (ret < 0) {
snd_ctl_free_one(kctrl);
if (ret < 0)
return ret;
}
cfg->update = update;
cfg->card = card;