]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: dmaengine: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 2 Jan 2015 12:56:07 +0000 (13:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jan 2015 21:28:25 +0000 (21:28 +0000)
commitde7621e870d527e949b5b2351e599398e5fac9ee
treeb9711b876b3526662e5c0496414ccf998d6dbcfa
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: dmaengine: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()

The ALSA core takes care that all preallocated memory is freed when the PCM
itself is freed. There is no need to do this manually in the driver.
Similarly there is also no need to do it on the pcm_new() error path as the
PCM will be freed if a error is returned.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c