fix(rmm): fix MISRA C:2012 Rule 17.7

Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I74054a0740e270712db3f5d284fefe6f91fc86a1
diff --git a/lib/realm/src/buffer.c b/lib/realm/src/buffer.c
index 6b09e58..9ef27e6 100644
--- a/lib/realm/src/buffer.c
+++ b/lib/realm/src/buffer.c
@@ -335,11 +335,14 @@
 
 void buffer_unmap_internal(void *buf)
 {
+	int ret __unused;
+
 	/*
 	 * Prevent the compiler from moving prior loads/stores to buf after the
 	 * update to the translation table. Otherwise, those could fault.
 	 */
 	COMPILER_BARRIER();
 
-	xlat_unmap_memory_page(get_cached_llt_info(), (uintptr_t)buf);
+	ret = xlat_unmap_memory_page(get_cached_llt_info(), (uintptr_t)buf);
+	assert(ret == 0);
 }