ALSA: memalloc: Simplify snd_malloc_dev_pages() calls
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Aug 2018 12:43:37 +0000 (14:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2018 11:56:46 +0000 (13:56 +0200)
commit28f3f4f685d7d7226ba4ed4f78e04c75dd3a5b27
tree353c5151d883195cfa85d2c20da7d6b9344d5363
parent03486830c577d3fe49c1f2c316414552a549ff00
ALSA: memalloc: Simplify snd_malloc_dev_pages() calls

snd_malloc_dev_pages() and snd_free_dev_pages() are local functions
and the parameters passed there are all contained in snd_dma_buffer
object.  As a code-simplification, pass snd_dma_buffer object and
assign the address there like other allocators do (except for
snd_malloc_pages() which is called from outside, hence we can't change
easily).

Only code refactoring, no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c