mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
cosmetic: Fixup fixup_silent_linux() for checkpatch
Signed-off-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org>
This commit is contained in:
parent
eaeecde7bc
commit
3a8653b3ac
@ -1200,7 +1200,7 @@ U_BOOT_CMD(
|
||||
/* helper routines */
|
||||
/*******************************************************************/
|
||||
#ifdef CONFIG_SILENT_CONSOLE
|
||||
static void fixup_silent_linux ()
|
||||
static void fixup_silent_linux(void)
|
||||
{
|
||||
char buf[256], *start, *end;
|
||||
char *cmdline = getenv("bootargs");
|
||||
@ -1211,7 +1211,8 @@ static void fixup_silent_linux ()
|
||||
|
||||
debug("before silent fix-up: %s\n", cmdline);
|
||||
if (cmdline) {
|
||||
if ((start = strstr (cmdline, "console=")) != NULL) {
|
||||
start = strstr(cmdline, "console=");
|
||||
if (start) {
|
||||
end = strchr(start, ' ');
|
||||
strncpy(buf, cmdline, (start - cmdline + 8));
|
||||
if (end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user