diff options
| author | Guilherme Dias <guilhermeabreu200105@usp.br> | 2026-05-04 16:04:25 -0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-31 10:59:34 +0100 |
| commit | ccf300c36bd6c79eeef4f4122fd2e58acfa46dbb (patch) | |
| tree | 8cd7d48b474723bd649a30395d386f34273d60b8 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c49965ae6b0c1a6362737fbce1e06617882f51fc (diff) | |
iio: gyro: adxrs290: Use guard(mutex) in lieu of manual lock+unlock
Use guard(mutex)() to automatically release the lock on scope exit,
simplifying the error handling path and removing the need for
explicit unlock and goto-based cleanup.
Signed-off-by: Guilherme Dias <guilhermeabreu200105@usp.br>
Co-developed-by: João Paulo Menezes Linaris <jplinaris@usp.br>
Signed-off-by: João Paulo Menezes Linaris <jplinaris@usp.br>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Maxwell Doose <m32285159@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
