summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-04 21:17:19 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-04 00:58:16 -0700
commit31b6b9a46d0af9c1ec7133e41302b3ef76016b04 (patch)
tree5d9224aa361bfba014228e70ea10d76356b04455 /rust/helpers
parent7dc406b736b9acf01379d2235d97bb4873b504e7 (diff)
Input: ps2-gpio - 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/20240905041732.2034348-15-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions