zephyr: (cosmetic) simplify a preprocessor conditional

Simplify a preprocessor conditional compilation in zone_is_cached().

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-10-21 12:29:00 +02:00 committed by Liam Girdwood
parent a1392bb0de
commit 0a3342f5d3
1 changed files with 2 additions and 4 deletions

View File

@ -147,10 +147,7 @@ static void heap_free(struct k_heap *h, void *mem)
static inline bool zone_is_cached(enum mem_zone zone) static inline bool zone_is_cached(enum mem_zone zone)
{ {
#ifndef CONFIG_SOF_ZEPHYR_HEAP_CACHED #ifdef CONFIG_SOF_ZEPHYR_HEAP_CACHED
return false;
#endif
switch (zone) { switch (zone) {
case SOF_MEM_ZONE_SYS: case SOF_MEM_ZONE_SYS:
case SOF_MEM_ZONE_SYS_RUNTIME: case SOF_MEM_ZONE_SYS_RUNTIME:
@ -160,6 +157,7 @@ static inline bool zone_is_cached(enum mem_zone zone)
default: default:
break; break;
} }
#endif
return false; return false;
} }