]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Remove superfluous snd_info_register() calls
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 14:02:11 +0000 (15:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Feb 2019 17:11:54 +0000 (18:11 +0100)
commit4ec927b71c05347e3fc6784f19f35022c81f3696
tree8d0f924acd27aa26a5bd60d8e542f477e54ad4d8
parentea9fda2dd47c1eafbbd404e9b698de74daf42667
ALSA: pcm: 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, as well as cleaning up the calls of substream proc
entries with a common helper.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c
sound/core/pcm_memory.c