Re: [cocci] [PATCH 28/36] regulator: wm831x-isink: remove conditional return with no effect

Charles Keepax <[email protected]> Fri, 24 Jul 2026 09:24:55 +0100
Newsgroups fr.inria.cocci,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Fri, Jul 24, 2026 at 03:45:30AM +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 <[email protected]>
> ---

Reviewed-by: Charles Keepax <[email protected]>

Thanks,
Charles