memory: omap-gpmc: simplify locking with guard()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 23 Aug 2024 10:15:58 +0000 (12:15 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 Aug 2024 09:02:15 +0000 (11:02 +0200)
commitc93ad423edd8a42a6666241595043f9193469f9e
tree3cdc658c2899572469879d8da7fceb1651908a5d
parentf1619986d7e996eb6e53c7fe8ab32e66b17e1cf1
memory: omap-gpmc: simplify locking with guard()

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

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240823-b4-cleanup-h-guard-v1-3-01668915bd55@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/omap-gpmc.c