diff options
Diffstat (limited to 'sound/isa/ad1848/ad1848_lib.c')
-rw-r--r-- | sound/isa/ad1848/ad1848_lib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c index d4b0e580557e..e0f8baa843b9 100644 --- a/sound/isa/ad1848/ad1848_lib.c +++ b/sound/isa/ad1848/ad1848_lib.c | |||
@@ -1202,10 +1202,8 @@ int snd_ad1848_add_ctl(struct snd_ad1848 *chip, const char *name, int index, int | |||
1202 | strlcpy(ctl->id.name, name, sizeof(ctl->id.name)); | 1202 | strlcpy(ctl->id.name, name, sizeof(ctl->id.name)); |
1203 | ctl->id.index = index; | 1203 | ctl->id.index = index; |
1204 | ctl->private_value = value; | 1204 | ctl->private_value = value; |
1205 | if ((err = snd_ctl_add(chip->card, ctl)) < 0) { | 1205 | if ((err = snd_ctl_add(chip->card, ctl)) < 0) |
1206 | snd_ctl_free_one(ctl); | ||
1207 | return err; | 1206 | return err; |
1208 | } | ||
1209 | return 0; | 1207 | return 0; |
1210 | } | 1208 | } |
1211 | 1209 | ||