aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/sb/sb_mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/sb/sb_mixer.c')
-rw-r--r--sound/isa/sb/sb_mixer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/isa/sb/sb_mixer.c b/sound/isa/sb/sb_mixer.c
index 1a6ee344dddb..490b1ca5cf58 100644
--- a/sound/isa/sb/sb_mixer.c
+++ b/sound/isa/sb/sb_mixer.c
@@ -453,10 +453,8 @@ int snd_sbmixer_add_ctl(struct snd_sb *chip, const char *name, int index, int ty
453 strlcpy(ctl->id.name, name, sizeof(ctl->id.name)); 453 strlcpy(ctl->id.name, name, sizeof(ctl->id.name));
454 ctl->id.index = index; 454 ctl->id.index = index;
455 ctl->private_value = value; 455 ctl->private_value = value;
456 if ((err = snd_ctl_add(chip->card, ctl)) < 0) { 456 if ((err = snd_ctl_add(chip->card, ctl)) < 0)
457 snd_ctl_free_one(ctl);
458 return err; 457 return err;
459 }
460 return 0; 458 return 0;
461} 459}
462 460