summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorEthan Tidmore <ethantidmore06@gmail.com>2026-02-22 21:40:11 -0600
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-23 21:08:45 +0000
commit34be156c88080ce1a58d44e409e3ac41ced572c1 (patch)
treed716811f1dabda2dcda31de467b4c9d5a9c64eb3 /tools/perf/scripts/python/event_analyzing_sample.py
parentc99ccbba912c859fd579fe3a00071adc5fd0236d (diff)
downloadlinux-34be156c88080ce1a58d44e409e3ac41ced572c1.tar.gz
linux-34be156c88080ce1a58d44e409e3ac41ced572c1.zip
iio: light: gp2ap020a00f: simplify locking with guard()
Use the guard() cleanup handler to manage the device lock. This simplifies the code by removing the need for manual unlocking and goto error handling paths. Suggested-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions