diff options
author | Takashi Iwai | 2019-02-05 12:35:16 +0100 |
---|---|---|
committer | Takashi Iwai | 2019-02-06 18:11:53 +0100 |
commit | 413d452f3a1c99274d6a9d967fafa7a23c850b4e (patch) | |
tree | f658c373e71b54e377d1549efc5b783efd68a34a /sound/drivers | |
parent | ALSA: firewire: Remove superfluous snd_info_register() calls (diff) | |
download | kernel-qcow2-linux-413d452f3a1c99274d6a9d967fafa7a23c850b4e.tar.gz kernel-qcow2-linux-413d452f3a1c99274d6a9d967fafa7a23c850b4e.tar.xz kernel-qcow2-linux-413d452f3a1c99274d6a9d967fafa7a23c850b4e.zip |
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>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/opl4/opl4_proc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/drivers/opl4/opl4_proc.c b/sound/drivers/opl4/opl4_proc.c index 16b24091d799..f1b839a0e7b7 100644 --- a/sound/drivers/opl4/opl4_proc.c +++ b/sound/drivers/opl4/opl4_proc.c @@ -114,10 +114,6 @@ int snd_opl4_create_proc(struct snd_opl4 *opl4) entry->c.ops = &snd_opl4_mem_proc_ops; entry->module = THIS_MODULE; entry->private_data = opl4; - if (snd_info_register(entry) < 0) { - snd_info_free_entry(entry); - entry = NULL; - } } opl4->proc_entry = entry; return 0; |