Fernando Yang a2b8613295 iio: adc: ad7266: Fix variable checking bug
The ret variable was not checked after iio_device_release_direct_mode(),
which could possibly cause errors

Fixes: c70df20e3159 ("iio: adc: ad7266: claim direct mode during sensor read")
Signed-off-by: Fernando Yang <hagisf@usp.br>
Link: https://lore.kernel.org/r/20240603180757.8560-1-hagisf@usp.br
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-06-08 18:26:57 +01:00
..
2023-02-18 17:06:09 +00:00
2022-07-16 18:50:24 +01:00
2024-05-27 09:49:19 +01:00
2023-08-13 22:14:51 +02:00
2023-09-12 10:42:04 +01:00
2023-09-12 10:42:04 +01:00
2022-09-05 18:08:34 +01:00