]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: mt6360: Use scoped variables with memory allocators to simplify error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 7 Jul 2024 11:48:22 +0000 (13:48 +0200)
committerLee Jones <lee@kernel.org>
Fri, 30 Aug 2024 08:40:13 +0000 (09:40 +0100)
commit4194783812687c5ee51e8f06ec7eb008afdc6764
tree7fdf4d0bc930e43bcfa99de8be6556e8af7720a1
parent691277c90ceb79ef01b8da07150c814fead0a3d7
mfd: mt6360: 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-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/mt6360-core.c