diff options
| author | Rafael Passos <rafael@rcpassos.me> | 2026-10-08 23:28:00 -0300 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-10-16 10:14:06 +0200 |
| commit | 4a487cd0edef48d5d3c57ce35271161aad279f41 (patch) | |
| tree | e6e9adf8db88fb765c1f24971715e2a1be5e298b /tools/perf/scripts/python | |
| parent | 890f45ed6552527288713f0a452db3bcab3b3fc0 (diff) | |
HID: wiimote: replace spinlock pairs with scoped_guard
Cleanup code replacing manual lock/unlock with scoped guards.
This does not change any behavior, but makes it safer to modify.
The multi line spinlock blocks were replaced by braced scoped_guard,
and one-liners by a scoped_guard without braces nor indentation.
There are two cases left in this driver using lock/unlock, because
guard would make the code more complex than current implementation.
Signed-off-by: Rafael Passos <rafael@rcpassos.me>
Reviewed-by: David Rheinsberg <david@readahead.eu>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
