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

From: Ioana Ciornei

Date: Mon Jul 27 2026 - 07:31:34 EST


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 <ekffu200098@xxxxxxxxx>
> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>
> Reviewed-by: Arthur Kiyanovski <akiyano@xxxxxxxxxx>

Reviewed-by: Ioana Ciornei <ioana.ciornei@xxxxxxx> # for dpaa2-switch