[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdbn=em2tTrAhYPhRyggjEK+O4QYMg4PrnHRibBhsAp=OQ@mail.gmail.com>
Date: Mon, 28 Oct 2024 15:31:33 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: linux-input@...r.kernel.org, Tony Lindgren <tony@...mide.com>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Input: omap-keypad - use guard notation when acquiring mutex
On Fri, Oct 25, 2024 at 3:47 AM Dmitry Torokhov
<dmitry.torokhov@...il.com> wrote:
> Using guard notation makes the code more compact and error handling
> more robust by ensuring that mutexes are released in all code paths
> when control leaves critical section.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists