[U-Boot] [PATCH] arm1136: cosmetic: Remove double test on CONFIG_SYS_DCACHE_OFF

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Tue Aug 14 15:17:09 CEST 2012


Remove a redundant '#ifndef CONFIG_SYS_DCACHE_OFF' nested in the same #ifndef.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau at advansee.com>
Cc: Albert Aribaud <albert.u.boot at aribaud.net>
---
 .../arch/arm/cpu/arm1136/cpu.c                     |    2 --
 1 file changed, 2 deletions(-)

diff --git u-boot-4d3c95f.orig/arch/arm/cpu/arm1136/cpu.c u-boot-4d3c95f/arch/arm/cpu/arm1136/cpu.c
index b98e3d9..1136c1d 100644
--- u-boot-4d3c95f.orig/arch/arm/cpu/arm1136/cpu.c
+++ u-boot-4d3c95f/arch/arm/cpu/arm1136/cpu.c
@@ -146,9 +146,7 @@ void enable_caches(void)
 #ifndef CONFIG_SYS_ICACHE_OFF
 	icache_enable();
 #endif
-#ifndef CONFIG_SYS_DCACHE_OFF
 	dcache_enable();
-#endif
 }
 
 #else /* #ifndef CONFIG_SYS_DCACHE_OFF */


More information about the U-Boot mailing list