]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: dapm: Simplify snd_soc_dai_link_event_pre_pmu() with cleanup.h
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 3 Jul 2024 12:11:05 +0000 (14:11 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jul 2024 11:50:03 +0000 (12:50 +0100)
commit522133d4401010d936b0588a5a975c2c965cb88e
tree91f0d9f42bd17bc8a0ef96268ed8c0d9c2ae3655
parent5b3cc85673bcc7bb961a3a6fa229cbc4fe0441ac
ASoC: dapm: Simplify snd_soc_dai_link_event_pre_pmu() with cleanup.h

Allocate the memory with scoped/cleanup.h in
snd_soc_dai_link_event_pre_pmu() to reduce error handling (less error
paths) and make the code a bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240703-asoc-cleanup-h-v1-11-71219dfd0aef@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c