]> git.sur5r.net Git - u-boot/commitdiff
board/cogent/lcd.c: fix syntax error
authorWolfgang Denk <wd@denx.de>
Thu, 6 Nov 2014 13:02:58 +0000 (14:02 +0100)
committerTom Rini <trini@ti.com>
Fri, 7 Nov 2014 21:27:07 +0000 (16:27 -0500)
Fix error detected by cppcheck:

[board/cogent/lcd.c:237]: (error) Invalid number of character (()
when these macros are defined:
'CONFIG_SHOW_ACTIVITY;CONFIG_STATUS_LED'.

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/cogent/lcd.c

index 8e90f9853a1a9ec903bc346a3ef3e77abd70df57..05ffc4d1ac385bd7443046f0bd2a52e88a669c47 100644 (file)
@@ -234,7 +234,7 @@ lcd_heartbeat(void)
 void board_show_activity (ulong timestamp)
 {
 #ifdef CONFIG_STATUS_LED
-       if ((timestamp % (CONFIG_SYS_HZ / 2) == 0)
+       if ((timestamp % (CONFIG_SYS_HZ / 2)) == 0)
                lcd_heartbeat ();
 #endif
 }