From df54406df5c1addaf84940012c1c2c254af4129b Mon Sep 17 00:00:00 2001
From: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Date: Wed, 5 Dec 2018 11:01:17 +0000
Subject: [PATCH] tzc380: Fix some asserts

This driver can be compiled in release builds, but GCC generates warnings
for some comparisons and that prevents the firmware from being built in
debug builds.

Change-Id: Ic52e1b4a11896ecf086864fbe2b5bfc143ec9b1b
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
---
 drivers/arm/tzc/tzc380.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/arm/tzc/tzc380.c b/drivers/arm/tzc/tzc380.c
index b30a5e697..082161fe5 100644
--- a/drivers/arm/tzc/tzc380.c
+++ b/drivers/arm/tzc/tzc380.c
@@ -50,7 +50,7 @@ void tzc380_init(uintptr_t base)
 {
 	unsigned int tzc_build;
 
-	assert(base != NULL);
+	assert(base != 0U);
 	tzc380.base = base;
 
 	/* Save values we will use later. */
@@ -81,7 +81,7 @@ static uint32_t addr_high(uintptr_t addr __unused)
  */
 void tzc380_configure_region(uint8_t region, uintptr_t region_base, unsigned int attr)
 {
-	assert(tzc380.base != NULL);
+	assert(tzc380.base != 0U);
 
 	assert(region < tzc380.num_regions);
 
@@ -92,7 +92,7 @@ void tzc380_configure_region(uint8_t region, uintptr_t region_base, unsigned int
 
 void tzc380_set_action(tzc_action_t action)
 {
-	assert(tzc380.base != NULL);
+	assert(tzc380.base != 0U);
 
 	/*
 	 * - Currently no handler is provided to trap an error via interrupt
-- 
GitLab