]> www.infradead.org Git - users/jedix/linux-maple.git/commit
reset: simplify locking with guard()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 Aug 2024 14:14:26 +0000 (16:14 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 2 Sep 2024 09:51:44 +0000 (11:51 +0200)
commit3ec21e7fa854b0b9dfefacd185c486e580479bb9
tree4334608768e6ebf8c3c07aa3a2355c8dcbcc75c2
parentb14e40f5dc7cd0dd7e958010e6ca9ad32ff2ddad
reset: simplify locking with guard()

Simplify error handling (less gotos) over locks with guard().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240825-reset-cleanup-scoped-v1-3-03f6d834f8c0@linaro.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c