summaryrefslogtreecommitdiff
path: root/tests/runtime_services
diff options
context:
space:
mode:
authorDouglas Raillard <douglas.raillard@arm.com>2016-11-15 16:32:03 +0000
committerDouglas Raillard <douglas.raillard@arm.com>2016-12-05 10:35:12 +0000
commit2494732c0477e929827e4507982e937caebccaad (patch)
tree93e80c60155fef4dfed8d9b1f7b97f77ed8a9414 /tests/runtime_services
parentb9459341f78044ae2a4a633cf9b4cbe9dced78c0 (diff)
Fix incorrect non matching local variable types
A place used to store an int without any relation to the test_result_t enumeration in a test_result_t variable. Another place used to store an int in an unsigned int. Make the type of the variable match the type of the returned values. Change-Id: I1da4b8d02fdf859f06bcbd0ffeeeafa77beee11a Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
Diffstat (limited to 'tests/runtime_services')
-rw-r--r--tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c b/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
index 5e1cbcd..4f8b29b 100644
--- a/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
+++ b/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
@@ -499,7 +499,7 @@ test_result_t test_psci_sys_susp_pending_irq(void)
unsigned int core_pos = platform_get_core_pos(read_mpidr_el1());
const unsigned int sgi_id = IRQ_NS_SGI_0;
int sgi_ret;
- test_result_t psci_ret;
+ int psci_ret;
test_result_t ret = TEST_RESULT_SUCCESS;
if ((is_psci_sys_susp_supported()) == PSCI_E_NOT_SUPPORTED) {
@@ -658,9 +658,10 @@ static unsigned int get_deepest_power_state(void)
{
unsigned int test_suspend_type;
unsigned int suspend_state_id;
- unsigned int power_level, ret;
+ unsigned int power_level;
unsigned int power_state = 0;
unsigned int pstate_id_idx[PLAT_MAX_PWR_LEVEL + 1];
+ int ret;
INIT_PWR_LEVEL_INDEX(pstate_id_idx);
do {