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)
commit480e32ebd524ffdf3d50cc5cac179fb9e44a552d
tree7f9030fe1751a73ab636c567305f1a6e848b3e36
parentde89750c56f4bf2f04492c6ce298911381a7597a
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