common: console: move break; statement
authorAndre Przywara <andre.przywara@arm.com>
Tue, 25 Mar 2025 17:47:44 +0000 (17:47 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 10 Apr 2025 22:16:39 +0000 (16:16 -0600)
commit82f5ce11e669d86ac08e6ba800d4a97ad734665b
tree1772ab4f35baacb3714a80e202a7fa166bb15e11
parentcb7555e93075114fe4af0adb806877ac4d4ef80d
common: console: move break; statement

In console_setfile(), there is some #ifdef'ed code, updating monitor
functions for a U-Boot proper build. This is called inside a switch/case
statement, but the closing "break;" is inside the #ifdef section.
This doesn't look right: we should not fall through to the error case
for an SPL/TPL build.

Move the "break" to be always effective, solving a compiler warning about
an untagged implicit fallthrough.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/console.c