gpio: sysfs: use cleanup guards for gpiod_data::mutex
Shrink the code and drop some goto labels by using lock guards around gpiod_data::mutex. Reviewed-by:Kent Gibson <warthog618@gmail.com> Link: https://lore.kernel.org/r/20241031-gpio-notify-sysfs-v4-1-142021c2195c@linaro.org Signed-off-by:
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Loading
Please sign in to comment