Skip to content

Commit 413d452

Browse files
committed
ALSA: opl4: 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 0c298bd commit 413d452

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎sound/drivers/opl4/opl4_proc.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ int snd_opl4_create_proc(struct snd_opl4 *opl4)
114114
entry->c.ops = &snd_opl4_mem_proc_ops;
115115
entry->module = THIS_MODULE;
116116
entry->private_data = opl4;
117-
if (snd_info_register(entry) < 0) {
118-
snd_info_free_entry(entry);
119-
entry = NULL;
120-
}
121117
}
122118
opl4->proc_entry = entry;
123119
return 0;

0 commit comments

Comments
 (0)