pinctrl: stmfx: Remove duplicated code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 7 Aug 2025 10:04:03 +0000 (11:04 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Aug 2025 20:17:30 +0000 (14:17 -0600)
commit4a2f360bd280b2b5af1c5daffbc189590c83c995
tree900293041ce044d407057428feb1b8bb8fb00371
parent64204ab107b51c60e490292ed1eda40a9a64d7d9
pinctrl: stmfx: Remove duplicated code

In stmfx_read_reg there is duplicated code to detect ret < 0 and return
ret if so. Remove one version of it.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/pinctrl/pinctrl-stmfx.c