Skip to content

Commit 69fad28

Browse files
committed
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>
1 parent 413d452 commit 69fad28

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎sound/synth/emux/emux_proc.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ void snd_emux_proc_init(struct snd_emux *emu, struct snd_card *card, int device)
115115
entry->content = SNDRV_INFO_CONTENT_TEXT;
116116
entry->private_data = emu;
117117
entry->c.text.read = snd_emux_proc_info_read;
118-
if (snd_info_register(entry) < 0)
119-
snd_info_free_entry(entry);
120-
else
121-
emu->proc = entry;
122118
}
123119

124120
void snd_emux_proc_free(struct snd_emux *emu)

0 commit comments

Comments
 (0)