|
@@ -453,10 +453,8 @@ int snd_sbmixer_add_ctl(struct snd_sb *chip, const char *name, int index, int ty
|
|
strlcpy(ctl->id.name, name, sizeof(ctl->id.name));
|
|
strlcpy(ctl->id.name, name, sizeof(ctl->id.name));
|
|
ctl->id.index = index;
|
|
ctl->id.index = index;
|
|
ctl->private_value = value;
|
|
ctl->private_value = value;
|
|
- if ((err = snd_ctl_add(chip->card, ctl)) < 0) {
|
|
|
|
- snd_ctl_free_one(ctl);
|
|
|
|
|
|
+ if ((err = snd_ctl_add(chip->card, ctl)) < 0)
|
|
return err;
|
|
return err;
|
|
- }
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|