aboutsummaryrefslogtreecommitdiff
path: root/bl2u
diff options
context:
space:
mode:
authorJohn Powell <john.powell@arm.com>2020-03-20 14:21:05 -0500
committerjohpow01 <john.powell@arm.com>2020-04-03 16:20:59 -0500
commit3443a7027d78a9ccebc6940f0a69300ec7c1ed44 (patch)
tree079c29b2f19a0009fdf7dbe2aa6727f920009a93 /bl2u
parent0f99bf32df156b7b87454278b049c65221eeeb84 (diff)
downloadtrusted-firmware-a-3443a7027d78a9ccebc6940f0a69300ec7c1ed44.tar.gz
Fix MISRA C issues in BL1/BL2/BL31
Attempts to address MISRA compliance issues in BL1, BL2, and BL31 code. Mainly issues like not using boolean expressions in conditionals, conflicting variable names, ignoring return values without (void), adding explicit casts, etc. Change-Id: If1fa18ab621b9c374db73fa6eaa6f6e5e55c146a Signed-off-by: John Powell <john.powell@arm.com>
Diffstat (limited to 'bl2u')
-rw-r--r--bl2u/bl2u_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bl2u/bl2u_main.c b/bl2u/bl2u_main.c
index d49c9ce9e4..fcb73b9c7a 100644
--- a/bl2u/bl2u_main.c
+++ b/bl2u/bl2u_main.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -34,7 +34,7 @@ void bl2u_main(void)
int rc;
/* Load the subsequent bootloader images */
rc = bl2u_plat_handle_scp_bl2u();
- if (rc) {
+ if (rc != 0) {
ERROR("Failed to load SCP_BL2U (%i)\n", rc);
panic();
}