arch: x86: Make if statement evaluate a boolean expression

MISRA-C rule 14.4

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-11-21 13:17:12 -08:00 committed by Anas Nashif
commit 6e1f6e5d5d

View file

@ -16,6 +16,7 @@
#include <toolchain.h>
#include <cache.h>
#include <cache_private.h>
#include <stdbool.h>
#if defined(CONFIG_CLFLUSH_INSTRUCTION_SUPPORTED) || \
defined(CONFIG_CLFLUSH_DETECT)
@ -69,7 +70,7 @@ static void init_cache_flush(void)
}
}
#else
#define init_cache_flush() do { } while ((0))
#define init_cache_flush() do { } while (false)
#if defined(CONFIG_CLFLUSH_INSTRUCTION_SUPPORTED)
FUNC_ALIAS(_cache_flush_clflush, sys_cache_flush, void);