ALSA: pcm: Create proc files only for non-empty preallocations
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 19:10:07 +0000 (20:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:43:34 +0000 (15:43 +0100)
commitd39789912f150b66515ccda7ed00bba828a334d4
tree2c43485ace2671eb6f7860791286223d4c735ca7
parenta55eaf177a36f7789eec0985a7edd00fe7353d90
ALSA: pcm: Create proc files only for non-empty preallocations

It makes little sense to create prealloc proc files for streams that
have the zero max size, which is a typical case for vmalloc buffers.
Skip the proc file creations to save resources in such a case.

Link: https://lore.kernel.org/r/20191105191007.18150-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_memory.c