Thread (17 messages) 17 messages, 8 authors, 2d ago

Re: [PATCH 08/36] net: remove conditional return with no effect

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-07-23 19:04:27
Also in: cocci, lkml

On Fri, Jul 24, 2026 at 03:45:10AM +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: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help