diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-10-27 22:50:18 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-11-05 14:17:32 -0800 |
commit | 6b6b40ff05ab43b603abd7ae1821892307421d49 (patch) | |
tree | b8490439d409ba693c14ee87a5f44101d44cd03d /tools/power | |
parent | 229ba714e52f7f29f41c1aa2e9f49feef3629322 (diff) | |
download | lwn-6b6b40ff05ab43b603abd7ae1821892307421d49.tar.gz lwn-6b6b40ff05ab43b603abd7ae1821892307421d49.zip |
Input: maple_keyb - 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.
Link: https://lore.kernel.org/r/Zx8mGiWOw1Av28TX@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions