diff options
| author | Matti Vaittinen <mazziesaccount@gmail.com> | 2024-11-21 15:05:38 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-12-07 17:47:58 +0000 |
| commit | 534674463a5978c6eda8185b31f5b903a9543f46 (patch) | |
| tree | 80cb002aeba6acc51459893107dbbce6042afec8 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 439c2cef8157bd3856200effdf4bb4ce3ff8e774 (diff) | |
| download | linux-534674463a5978c6eda8185b31f5b903a9543f46.tar.gz linux-534674463a5978c6eda8185b31f5b903a9543f46.zip | |
iio: bm1390: simplify using guard(mutex)
The BM1390 uses mutex for protecting the fifo read sequence. The clean-up
for a few of the functions can be slightly simplified by removing the
goto-based error handling/unlocking and by utilizing the guard(mutex)
scoped mutex handling instead.
Simplify driver by using the scoped mutexes.
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/a4c2f21189964132d245531b77fb0865562443a1.1732193263.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
