diff options
| author | Guilherme Ivo Bozi <guilherme.bozi@usp.br> | 2026-05-12 21:31:51 -0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-31 10:59:41 +0100 |
| commit | f3c1ef2bca5c128b62b5b804a50ad3f6f64a3098 (patch) | |
| tree | c8fc4de80cce413a005c61b8b3c17fa97f0bea0f /tools/perf/scripts/python/flamegraph.py | |
| parent | 947eb6f0a274f8b15a0248051a65b069effd5057 (diff) | |
iio: adc: xilinx-ams: use guard(mutex) for automatic locking
Replace open-coded mutex_lock()/mutex_unlock() pairs with
guard(mutex) to simplify locking and ensure proper unlock on
all control flow paths.
This removes explicit unlock handling, reduces boilerplate,
and avoids potential mistakes in error paths while keeping
the behavior unchanged.
Signed-off-by: Guilherme Ivo Bozi <guilherme.bozi@usp.br>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Salih Erim <salih.erim@amd.com>
Tested-by: Salih Erim <salih.erim@amd.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
