summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-04 21:17:24 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-04 01:04:14 -0700
commit924c5eeb17490136d9ec688b0926bbae27eb0a1f (patch)
treeb0d7c2363e8b0a40dbdc67be8e0490e38054fd50 /tools/perf/scripts/python
parentf7d15dcc249e54aedcfc71dddb6418b0bb2b8531 (diff)
Input: serio - use guard notation when acquiring mutexes and spinlocks
Using guard notation 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. Link: https://lore.kernel.org/r/20240905041732.2034348-20-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions