diff options
author | Zelalem <zelalem.aweke@arm.com> | 2020-02-12 10:37:03 -0600 |
---|---|---|
committer | Zelalem <zelalem.aweke@arm.com> | 2020-02-18 10:47:46 -0600 |
commit | 2fe75a2de087ec23162c5fd25ba439bd330ea50c (patch) | |
tree | 8fdfe111e09b5de4d7495c03ea4cde6ba29ee2af /lib/psci/psci_common.c | |
parent | 572fcdd547753d668ca1146ca420664ccc3ac6fb (diff) | |
download | arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.tar.gz |
coverity: fix MISRA violations
Fixes for the following MISRA violations:
- Missing explicit parentheses on sub-expression
- An identifier or macro name beginning with an
underscore, shall not be declared
- Type mismatch in BL1 SMC handlers and tspd_main.c
Change-Id: I7a92abf260da95acb0846b27c2997b59b059efc4
Signed-off-by: Zelalem <zelalem.aweke@arm.com>
Diffstat (limited to 'lib/psci/psci_common.c')
-rw-r--r-- | lib/psci/psci_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 5ab15c6ee..cced2761f 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -601,7 +601,7 @@ void psci_release_pwr_domain_locks(unsigned int end_pwrlvl, unsigned int level; /* Unlock top down. No unlocking required for level 0. */ - for (level = end_pwrlvl; level >= PSCI_CPU_PWR_LVL + 1U; level--) { + for (level = end_pwrlvl; level >= (PSCI_CPU_PWR_LVL + 1U); level--) { parent_idx = parent_nodes[level - 1U]; psci_lock_release(&psci_non_cpu_pd_nodes[parent_idx]); } |