Browse Source

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

Mark Brown 8 years ago
parent
commit
df3c63d39d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      sound/soc/sh/rcar/core.c

+ 1 - 3
sound/soc/sh/rcar/core.c

@@ -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;