"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andre Przywara and committed by
Tom Rini
82f5ce11 cb7555e9

+1 -1
+1 -1
common/console.c
··· 208 208 gd->jt->printf = printf; 209 209 break; 210 210 } 211 - break; 212 211 #endif 212 + break; 213 213 default: /* Invalid file ID */ 214 214 error = -1; 215 215 }