diff options
| author | Ethan Tidmore <ethantidmore06@gmail.com> | 2026-02-23 06:40:11 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-02-24 00:08:45 +0300 |
| commit | 34be156c88080ce1a58d44e409e3ac41ced572c1 (patch) | |
| tree | d716811f1dabda2dcda31de467b4c9d5a9c64eb3 /include/linux/workqueue.h | |
| parent | c99ccbba912c859fd579fe3a00071adc5fd0236d (diff) | |
| download | linux-34be156c88080ce1a58d44e409e3ac41ced572c1.tar.xz | |
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 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
