Re: [PATCH 8/9] iio: light: tsl2583: remove conditional return with no effect

From: Brian Masney

Date: Tue Jul 28 2026 - 16:06:58 EST


On Tue, Jul 28, 2026 at 03:47:45AM +0900, Sang-Heon Jeon 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>
> Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>

Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>