Re: [PATCH 15/36] iio: remove conditional return with no effect

Joshua Crofts <[email protected]>
Newsgroups org.kernel.vger.linux-iio,fr.inria.cocci,org.kernel.vger.linux-kernel
Message-ID <20260723234607.52b67523@systembl0wer>
On Fri, 24 Jul 2026 03:45:17 +0900
Sang-Heon Jeon <[email protected]> wrote:

> Both branches of the check return the same value, so the check has
> no effect. Remove it and return the value directly.
> 
> This is the result of running the Coccinelle script from
> scripts/coccinelle/misc/cond_return_no_effect.cocci.
> 
> Signed-off-by: Sang-Heon Jeon <[email protected]>
> ---

Good idea adding a cocci script for this!

Reviewed-by: Joshua Crofts <[email protected]>

-- 
Kind regards,
Joshua Crofts
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.