mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
env: Use getenv_yesno() more generally
Move the getenv_yesno() to env_common.c and change most checks for 'y' or 'n' to use this helper. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
committed by
Tom Rini
parent
7afcf3a55b
commit
ec8a252cd4
@@ -284,8 +284,7 @@ void board_init_f(ulong bootflag)
|
||||
*
|
||||
* NOTE: Maybe we should add some WATCHDOG_RESET()? XXX
|
||||
*/
|
||||
s = getenv("flashchecksum");
|
||||
if (s && (*s == 'y')) {
|
||||
if (getenv_yesno("flashchecksum") == 1) {
|
||||
printf(" CRC: %08lX",
|
||||
crc32(0, (const unsigned char *)CONFIG_SYS_FLASH_BASE,
|
||||
flash_size)
|
||||
|
Reference in New Issue
Block a user