]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: opl4: Remove superfluous snd_info_register() calls
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2019 11:35:16 +0000 (12:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Feb 2019 17:11:53 +0000 (18:11 +0100)
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>
sound/drivers/opl4/opl4_proc.c

index 16b24091d79932bc6c21093a6259790dc3ef5e0e..f1b839a0e7b7d6bb1c75880a68b80afe403e45fc 100644 (file)
@@ -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;