[PATCH 2/7] memory: emif: simplify locking with guard()
Jonathan Cameron
Jonathan.Cameron at Huawei.com
Fri Aug 23 04:40:33 PDT 2024
On Fri, 23 Aug 2024 12:15:57 +0200
Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org> wrote:
> Simplify error handling (less gotos) over locks with guard().
>
> The driver used file-scope variable 'irq_state' for storing IRQ state
> with spin_lock_irqsave, so move it into respective local scopes. This
> should be equivalent, but more readable (less global variables).
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
>
LGTM. File scoped irq_state is certainly unusual...
Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huwei.com>
More information about the linux-arm-kernel
mailing list