projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dwc2 USB controller hangs with lan78xx
[platform/kernel/u-boot.git]
/
cmd
/
bootmenu.c
diff --git
a/cmd/bootmenu.c
b/cmd/bootmenu.c
index
5879065
..
21f353f
100644
(file)
--- a/
cmd/bootmenu.c
+++ b/
cmd/bootmenu.c
@@
-1,7
+1,6
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2011-2013 Pali Rohár <pali.rohar@gmail.com>
/*
* (C) Copyright 2011-2013 Pali Rohár <pali.rohar@gmail.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-53,7
+52,7
@@
static char *bootmenu_getoption(unsigned short int n)
return NULL;
sprintf(name, "bootmenu_%d", n);
return NULL;
sprintf(name, "bootmenu_%d", n);
- return
getenv
(name);
+ return
env_get
(name);
}
static void bootmenu_print_entry(void *data)
}
static void bootmenu_print_entry(void *data)
@@
-483,7
+482,7
@@
int do_bootmenu(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
delay_str = argv[1];
if (!delay_str)
delay_str = argv[1];
if (!delay_str)
- delay_str =
getenv
("bootmenu_delay");
+ delay_str =
env_get
("bootmenu_delay");
if (delay_str)
delay = (int)simple_strtol(delay_str, NULL, 10);
if (delay_str)
delay = (int)simple_strtol(delay_str, NULL, 10);