Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
[sfrench/cifs-2.6.git] / sound / soc / sh / rcar / core.c
index 948c5ec879805b656818f37b49bd4327d134f87d..47b370cb2d3b3aeb53f59f6198793f891890c0f8 100644 (file)
@@ -1028,10 +1028,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;