]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Simplify proc file destruction
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 Jan 2019 15:44:38 +0000 (16:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Jan 2019 13:40:25 +0000 (14:40 +0100)
commit8f660543dfedec26f7bfc435476bebea43b807f4
tree7f9030fe1751a73ab636c567305f1a6e848b3e36
parentbb0d50a691ccdcfd5be9328468b16a927e81fea9
ALSA: pcm: Simplify proc file destruction

The proc files are recursively freed by calling with the root
snd_info_entry object, so we don't have to keep each object for
releasing one by one.  Move the release of the PCM stream proc root at
the beginning, so that we can remove the redundant code and resource.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm.c
sound/core/pcm_memory.c