Thread (67 messages) 67 messages, 5 authors, 2024-10-18

Re: [PATCH net-next 03/12] net: pse-pd: tps23881: Simplify function returns by removing redundant checks

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-10-02 23:26:19
Also in: linux-doc, lkml

On Wed, Oct 02, 2024 at 06:27:59PM +0200, Kory Maincent wrote:
From: Kory Maincent (Dent Project) <kory.maincent@bootlin.com>

Cleaned up several functions in tps23881 by removing redundant checks on
return values at the end of functions. These check has been removed, and
the return statement now directly returns the function result, reducing
the code's complexity and making it more concise.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
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