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

From
Ioana Ciornei <ioana.ciornei@nxp.com>
Date
2026-07-27 11:27:32
Also in
linux-renesas-soc, lkml
Reply to
Sang-Heon Jeon, 2026-07-25
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 <redacted>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Arthur Kiyanovski <akiyano@amazon.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> # for dpaa2-switch
Thread (9 messages) 9 messages, 5 authors, last reply 2026-07-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help