diff options
author | Soby Mathew <soby.mathew@arm.com> | 2016-05-03 17:11:42 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2016-07-18 17:52:15 +0100 |
commit | da554d7439b1e9b64d06dd50c6eb29bf1c952805 (patch) | |
tree | 24f9f2bd2633606a9fd18a7bc276cce18e57e87c /services/std_svc | |
parent | 4c0d03907652fdf9c66a02cec9ea7137ccccd2e9 (diff) |
Fix coding guideline warnings
This patch fixes some coding guideline warnings reported by the checkpatch
script. Only files related to upcoming feature development have been fixed.
Change-Id: I26fbce75c02ed62f00493ed6c106fe7c863ddbc5
Diffstat (limited to 'services/std_svc')
-rw-r--r-- | services/std_svc/psci/psci_common.c | 2 | ||||
-rw-r--r-- | services/std_svc/psci/psci_main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/services/std_svc/psci/psci_common.c b/services/std_svc/psci/psci_common.c index a651d99f..2a0afb4c 100644 --- a/services/std_svc/psci/psci_common.c +++ b/services/std_svc/psci/psci_common.c @@ -817,7 +817,7 @@ void psci_print_power_domain_map(void) plat_local_state_type_t state_type; /* This array maps to the PSCI_STATE_X definitions in psci.h */ - static const char *psci_state_type_str[] = { + static const char * const psci_state_type_str[] = { "ON", "RETENTION", "OFF", diff --git a/services/std_svc/psci/psci_main.c b/services/std_svc/psci/psci_main.c index 86df9a11..04ef10e7 100644 --- a/services/std_svc/psci/psci_main.c +++ b/services/std_svc/psci/psci_main.c @@ -94,7 +94,7 @@ int psci_cpu_suspend(unsigned int power_state, is_power_down_state = psci_get_pstate_type(power_state); /* Sanity check the requested suspend levels */ - assert (psci_validate_suspend_req(&state_info, is_power_down_state) + assert(psci_validate_suspend_req(&state_info, is_power_down_state) == PSCI_E_SUCCESS); target_pwrlvl = psci_find_target_suspend_lvl(&state_info); @@ -217,7 +217,7 @@ int psci_cpu_off(void) * The only error cpu_off can return is E_DENIED. So check if that's * indeed the case. */ - assert (rc == PSCI_E_DENIED); + assert(rc == PSCI_E_DENIED); return rc; } |