summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-05 12:36:02 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-06 18:11:53 +0100
commit69fad28cefe33a8d45daef7ef9f5abb69ec2d343 (patch)
treeaf1027b60db907229fd68fe7cc139459bf43c42c
parent413d452f3a1c99274d6a9d967fafa7a23c850b4e (diff)
downloadlinux-69fad28cefe33a8d45daef7ef9f5abb69ec2d343.tar.bz2
ALSA: emux: Remove superfluous snd_info_register() calls
The calls of snd_info_register() are superfluous and should be avoided at the procfs creation time. They are called at the end of the whole initialization via snd_card_register(). This patch drops such superfluous calls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/synth/emux/emux_proc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/synth/emux/emux_proc.c b/sound/synth/emux/emux_proc.c
index a82b4053bee8..c14781ac7941 100644
--- a/sound/synth/emux/emux_proc.c
+++ b/sound/synth/emux/emux_proc.c
@@ -115,10 +115,6 @@ void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device)
entry->content = SNDRV_INFO_CONTENT_TEXT;
entry->private_data = emu;
entry->c.text.read = snd_emux_proc_info_read;
- if (snd_info_register(entry) < 0)
- snd_info_free_entry(entry);
- else
- emu->proc = entry;
}
void snd_emux_proc_free(struct snd_emux *emu)