Re: [PATCH net-next v2 2/4] net: ethernet: remove conditional return with no effect

Ioana Ciornei <[email protected]> Mon, 27 Jul 2026 14:27:23 +0300
Newsgroups org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <dikut4xqf5ky4vobqe7u2uetwd6vninhgo6ublm6j4odcrqh33@7igoo74jc7og>
On Sun, Jul 26, 2026 at 12:08:50AM +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: Niklas Söderlund <[email protected]>
> Reviewed-by: Arthur Kiyanovski <[email protected]>

Reviewed-by: Ioana Ciornei <[email protected]> # for dpaa2-switch