staging: iio: resolver: ad2s1210: simplify code with guard(mutex)
authorDavid Lechner <dlechner@baylibre.com>
Tue, 10 Oct 2023 21:12:35 +0000 (16:12 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 12 Oct 2023 08:00:58 +0000 (09:00 +0100)
commit169dc2adafecc19ecf53a101398edd7f3ff03529
tree84b98915721a670dd7e75fcc8f8fb7f1539bc6f0
parent4efa877ac942d63c335820bf52d262e76901bea9
staging: iio: resolver: ad2s1210: simplify code with guard(mutex)

We can simplify the code and get rid of most of the gotos by using
guard(mutex) from cleanup.h.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231010-ad2s1210-mainline-v5-3-35a0f6ffa04a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c