]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: omap-keypad - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 25 Oct 2024 01:47:08 +0000 (18:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Oct 2024 22:54:51 +0000 (15:54 -0700)
commite1325e19d2256c4724fb465c547333af424e5de5
treed416bb732215d573c9ae71da73d00d763394c38d
parentb4badee88cd3af8b31f93ca1469f499ddabd01c5
Input: omap-keypad - use guard notation when acquiring mutex

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.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/Zxr4nF-igbrmgq85@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/omap-keypad.c