Re: [PATCH 15/36] iio: remove conditional return with no effect
From: Joshua Crofts
Date: Thu Jul 23 2026 - 17:49:47 EST
On Fri, 24 Jul 2026 03:45:17 +0900
Sang-Heon Jeon <ekffu200098@xxxxxxxxx> 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 <ekffu200098@xxxxxxxxx>
> ---
Good idea adding a cocci script for this!
Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
--
Kind regards,
Joshua Crofts