summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2025-02-09 21:05:59 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-02-17 15:57:30 +0300
commit5feb5532870fbced5d6f450b8061a33f461b88ca (patch)
tree94527f058ca558ab9bb03e1a3725fa6386ebe2eb /tools/perf/scripts/python
parentd795e38df4b7ebac1072bbf7d8a5500c1ea83332 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions