diff options
author | Joe Hershberger | 2012-12-11 22:16:22 -0600 |
---|---|---|
committer | Tom Rini | 2012-12-13 11:46:55 -0700 |
commit | ec8a252cd492a7a409d6912aebeff34bb9e1e1e1 (patch) | |
tree | 346bb7bedd1dfe13f531725e7e0edaa2d80df1a8 /arch/sparc | |
parent | 7afcf3a55b5f484b3d3442053fae8186a3fb92d7 (diff) |
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/lib/board.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c index 32d025a3423..1b5e995b15a 100644 --- a/arch/sparc/lib/board.c +++ b/arch/sparc/lib/board.c @@ -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) |