ALSA: pcm: Remove snd_pcm_lib_preallocate_dma_free()
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 18 Dec 2020 15:34:00 +0000 (16:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Dec 2020 16:07:04 +0000 (17:07 +0100)
commitf2283366c2919fda71e6eb725c3e5c1bd47bae1a
treee04c634cf7d82b12d6d85af348f64538316fa267
parent725124d10d00b2f56bb5bd08b431cc74ab3b3ace
ALSA: pcm: Remove snd_pcm_lib_preallocate_dma_free()

Since commit d4cfb30fce03 ("ALSA: pcm: Set per-card upper limit of PCM
buffer allocations") snd_pcm_lib_preallocate_dma_free() is a single line
function that has one caller, which is another single line function.

Clean this up a bit and remove snd_pcm_lib_preallocate_dma_free() and
directly call do_free_pages() from snd_pcm_lib_preallocate_free(). This is
a bit less boilerplate.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20201218153400.18394-1-lars@metafoo.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_memory.c