]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: sprd: Simplify memory allocation in sprd_platform_compr_dma_config()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 19 Dec 2023 04:41:19 +0000 (05:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Dec 2023 14:02:50 +0000 (14:02 +0000)
commit1b08e7697f1eef88de902820d181d5c4291f074c
tree5090a3fdc65237c1373395202e3f7d11562c073a
parent55d7bbe433467a64ac82c41b4efd425aa24acdce
ASoC: sprd: Simplify memory allocation in sprd_platform_compr_dma_config()

'sg' is freed at the end sprd_platform_compr_dma_config() both in the
normal and in the error handling path.

There is no need to use the devm_kcalloc()/devm_kfree(), kcalloc()/kfree()
is enough.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://msgid.link/r/d16f22ae0627249a9fc658927832590cd88c544e.1702960856.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sprd/sprd-pcm-compress.c