summaryrefslogtreecommitdiff
path: root/arch/nds32/lib/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/lib/cache.c')
-rw-r--r--arch/nds32/lib/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nds32/lib/cache.c b/arch/nds32/lib/cache.c
index 9ab30d1965..3e5aa7cda8 100644
--- a/arch/nds32/lib/cache.c
+++ b/arch/nds32/lib/cache.c
@@ -6,7 +6,7 @@
*/
#include <common.h>
-#if (!defined(CONFIG_SYS_ICACHE_OFF) || !defined(CONFIG_SYS_DCACHE_OFF))
+#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
static inline unsigned long CACHE_SET(unsigned char cache)
{
if (cache == ICACHE)