]> www.infradead.org Git - users/hch/misc.git/commit
net: pse-pd: tps23881: Simplify function returns by removing redundant checks
authorKory Maincent <kory.maincent@bootlin.com>
Fri, 10 Jan 2025 09:40:23 +0000 (10:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Jan 2025 12:56:32 +0000 (13:56 +0100)
commit0b567519d1152de52b29b2da2c47aa0f39a46266
tree83a7aa6591bec311ba52bd01f677b4679ea26b80
parent6e56a6d47a7fad705a1a1d088237b0858c01a770
net: pse-pd: tps23881: Simplify function returns by removing redundant checks

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.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Kyle Swenson <kyle.swenson@est.tech>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/pse-pd/tps23881.c