mirror of https://github.com/thesofproject/sof.git
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:
parent
a1392bb0de
commit
0a3342f5d3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue