]> www.infradead.org Git - users/dwmw2/linux.git/commit
mfd: syscon: Use scoped variables with memory allocators to simplify error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 7 Jul 2024 11:48:23 +0000 (13:48 +0200)
committerLee Jones <lee@kernel.org>
Fri, 30 Aug 2024 08:40:13 +0000 (09:40 +0100)
commit82f898f47112bc7b787cb9ce8803c4e2f9f60c89
treef74b0175d7eb781233cff1b9ffc75559d72a2026
parent4194783812687c5ee51e8f06ec7eb008afdc6764
mfd: syscon: Use scoped variables with memory allocators to simplify error paths

Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240707114823.9175-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/syscon.c