diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-09 21:05:59 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-02-17 15:57:30 +0300 |
| commit | 5feb5532870fbced5d6f450b8061a33f461b88ca (patch) | |
| tree | 94527f058ca558ab9bb03e1a3725fa6386ebe2eb /tools/perf/scripts/python/intel-pt-events.py | |
| parent | d795e38df4b7ebac1072bbf7d8a5500c1ea83332 (diff) | |
| download | linux-5feb5532870fbced5d6f450b8061a33f461b88ca.tar.xz | |
iio: chemical: scd30: Use guard(mutex) to allow early returns
Auto cleanup based release of the lock allows for simpler code flow in a
few functions with large multiplexing style switch statements and no
common operations following the switch.
Suggested-by: David Lechner <dlechner@baylibre.com>
Cc: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250209180624.701140-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
