]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
fix emif_assert() macro implementation
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 08:50:21 +0000 (10:50 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 24 Jun 2013 08:50:21 +0000 (10:50 +0200)
arch/arm/include/asm/emif.h

index ed251ec8ec19f119180e56a7be186bcc6110fbab..8864c3044651569cccd7a932aa7a4d18d91d3dd1 100644 (file)
@@ -1131,9 +1131,9 @@ struct emif_regs {
 
 /* assert macros */
 #if defined(DEBUG)
-#define emif_assert(c) ({ if (!(c)) for (;;); })
+#define emif_assert(c) ({ if (!(c)) hang(); })
 #else
-#define emif_assert(c) ({ if (0) hang(); })
+#define emif_assert(c) (c)
 #endif
 
 #ifdef CONFIG_SYS_EMIF_PRECALCULATED_TIMING_REGS