summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-02-20 16:33:34 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-23 23:44:32 +0300
commit3d8fedcc62b663f6c04b1d172e7298c71bbddb8f (patch)
tree68de475693ee456051dab769f1ee28a9154df622
parent12b393486c707dc005540da58f6c7a60776941ac (diff)
downloadlinux-3d8fedcc62b663f6c04b1d172e7298c71bbddb8f.tar.xz
iio: filter: admv8818: remove redundant else after return
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@analog.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/iio/filter/admv8818.c4
1 files 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)