mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
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>
This commit is contained in:
parent
cb7555e930
commit
82f5ce11e6
1 changed files with 1 additions and 1 deletions
|
@ -208,8 +208,8 @@ static int console_setfile(int file, struct stdio_dev * dev)
|
|||
gd->jt->printf = printf;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
break;
|
||||
default: /* Invalid file ID */
|
||||
error = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue