Re: [PATCH 17/17] Input: tegra-kbc - use guard notation when acquiring mutex and spinlock

From
Thierry Reding <hidden>
Date
2024-08-27 09:08:12
Also in
imx, linux-arm-kernel, linux-tegra, lkml
Reply to
Dmitry Torokhov, 2024-08-25
On Sat, Aug 24, 2024 at 10:16:21PM GMT, Dmitry Torokhov wrote:
This makes the code more compact and error handling more robust
by ensuring that locks are released in all code paths when control
leaves critical section.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/keyboard/tegra-kbc.c | 45 +++++++++++++-----------------
 1 file changed, 19 insertions(+), 26 deletions(-)
Acked-by: Thierry Reding <redacted>

Attachments

Thread (22 messages) 22 messages, 4 authors, last reply 2024-08-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help