]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: simple-card: Use cleanup.h instead of devm_kfree()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 3 Jul 2024 12:11:02 +0000 (14:11 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jul 2024 11:50:01 +0000 (12:50 +0100)
commit7d996c8a5fea700e816379e57f4983e2611519a0
tree8a22f01b7155fe20bf16173f869839d18cf11ae9
parentb39f7713ece62b2b0a3cfad7a75a0eb0ab71aa4e
ASoC: simple-card: Use cleanup.h instead of devm_kfree()

Allocate the memory with scoped/cleanup.h, instead of devm interface, to
make the code more obvious that memory is not used outside this scope.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20240703-asoc-cleanup-h-v1-8-71219dfd0aef@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card.c