]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: filter: admv8818: remove redundant else after return
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 20 Feb 2026 13:33:34 +0000 (15:33 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 20:44:32 +0000 (20:44 +0000)
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>
drivers/iio/filter/admv8818.c

index 19f823446cdad9176beee4949f0466bf51d6f126..e494fd33911bd21b37f4868592224904e822d6ae 100644 (file)
@@ -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)