diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2016-07-23 10:34:14 +0200 |
---|---|---|
committer | Etienne Carriere <etienne.carriere@linaro.org> | 2016-08-09 09:10:56 +0200 |
commit | 8ddf5a4e3ce277adee040d90758ec08b429e9e4f (patch) | |
tree | 64126cac877e816bdcfc79fd7efd4813c4183840 /core/drivers/imx_uart.c | |
parent | 5ef74e7339b61e299e63db44708a7fbfd9595de7 (diff) |
assert/panic: fix misuse of assert/panic
Currently implementation of macro assert() does not expand to a
no-op when NDEBUG is defined. This will be done in a later change.
Before that, fix misuses of assert() and TEE_ASSERT():
- Correct misplaced assert() that should panic() whatever NDEBUG.
- Correct misplaced TEE_ASSERT() that should simply assert().
Also cleanup many inclusions of "assert.h" and few calls of assert().
Signed-off-by: Jens Wiklander <jen.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (QEMU)
Diffstat (limited to 'core/drivers/imx_uart.c')
-rw-r--r-- | core/drivers/imx_uart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/drivers/imx_uart.c b/core/drivers/imx_uart.c index 37d63f4d..b66d9059 100644 --- a/core/drivers/imx_uart.c +++ b/core/drivers/imx_uart.c @@ -30,7 +30,6 @@ #include <drivers/imx_uart.h> #include <console.h> #include <io.h> -#include <assert.h> #include <compiler.h> /* Register definitions */ |