aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/lib/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/lib/board.c')
-rw-r--r--arch/sparc/lib/board.c3
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)