[PATCH 5/5] iio: filter: admv8818: remove redundant else after return

From: Antoniu Miclaus

Date: Fri Feb 20 2026 - 08:41:34 EST


The else in admv8818_init() is unnecessary since the if block already
returns after calling admv8818_rfin_band_select() when clkin is present.

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

diff --git a/drivers/iio/filter/admv8818.c b/drivers/iio/filter/admv8818.c
index 19f823446cda..e494fd33911b 100644
--- a/drivers/iio/filter/admv8818.c
+++ b/drivers/iio/filter/admv8818.c
@@ -695,8 +695,8 @@ static int admv8818_init(struct admv8818_state *st)

if (st->clkin)
return admv8818_rfin_band_select(st);
- else
- return 0;
+
+ return 0;
}

static int admv8818_clk_setup(struct admv8818_state *st)
--
2.43.0