pinctrl: single: Remove unreachable code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 7 Aug 2025 10:04:02 +0000 (11:04 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Aug 2025 20:17:30 +0000 (14:17 -0600)
commit64204ab107b51c60e490292ed1eda40a9a64d7d9
tree066d7d56b9e00be8c3c35c831160b17e65e7923b
parent460db5b44dba0ec93bbfec3bdf537fba7a487714
pinctrl: single: Remove unreachable code

In single_read there is a switch block with a default label. All cases
in the switch block, including the default, return directly. So any code
following the switch block is unreachable. Remove the unreachable code.

This issue was found by Smatch.

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