[PATCH 3/5] iio: dac: ad5592r-base: remove redundant else after return

From: Antoniu Miclaus

Date: Fri Feb 20 2026 - 08:40:05 EST


The else returning the internal 2500mV fallback in ad5592r_get_vref()
is unnecessary since the if block for the external regulator already
returns.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
---
drivers/iio/dac/ad5592r-base.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/dac/ad5592r-base.c b/drivers/iio/dac/ad5592r-base.c
index 4720733d66b2..a8c10ca238d0 100644
--- a/drivers/iio/dac/ad5592r-base.c
+++ b/drivers/iio/dac/ad5592r-base.c
@@ -179,9 +179,9 @@ static int ad5592r_get_vref(struct ad5592r_state *st)
return ret;

return ret / 1000;
- } else {
- return 2500;
}
+
+ return 2500;
}

static int ad5592r_set_channel_modes(struct ad5592r_state *st)
--
2.43.0