diff options
author | Tarek El-Sherbiny <tarek.el-sherbiny@arm.com> | 2019-10-31 13:32:30 +0000 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2019-12-02 12:19:02 +0000 |
commit | caea32130ff5b132b544254bac6efaf68f48bf2e (patch) | |
tree | 328d998865f8a83ac44ef79e4edab457527a02e6 /module/system_power | |
parent | 6ceb490e749baa00cc90528a40270ef2b38da2e5 (diff) |
modules: Remove calls to fwk_module_check_call
This change is to reduce memory footprint.
Change-Id: I1d10681b3cdf28520b45a698ed607cca4df39b65
Signed-off-by: Tarek El-Sherbiny <tarek.el-sherbiny@arm.com>
Diffstat (limited to 'module/system_power')
-rw-r--r-- | module/system_power/src/mod_system_power.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/module/system_power/src/mod_system_power.c b/module/system_power/src/mod_system_power.c index fbe980d6..7628637b 100644 --- a/module/system_power/src/mod_system_power.c +++ b/module/system_power/src/mod_system_power.c @@ -124,10 +124,6 @@ static int system_power_set_state(fwk_id_t pd_id, unsigned int state) int status; unsigned int soc_wakeup_irq; - status = fwk_module_check_call(pd_id); - if (status != FWK_SUCCESS) - return status; - if (!fwk_expect(state < MOD_SYSTEM_POWER_POWER_STATE_COUNT)) return FWK_E_PARAM; @@ -209,12 +205,6 @@ static int system_power_set_state(fwk_id_t pd_id, unsigned int state) static int system_power_get_state(fwk_id_t pd_id, unsigned int *state) { - int status; - - status = fwk_module_check_call(pd_id); - if (status != FWK_SUCCESS) - return status; - *state = system_power_ctx.state; return FWK_SUCCESS; @@ -262,13 +252,8 @@ static const struct mod_pd_driver_api system_power_power_domain_driver_api = { static int system_power_report_power_state_transition(fwk_id_t dev_id, unsigned int state) { - int status; static unsigned int sys_ppu_transition_count = 0; - status = fwk_module_check_call(dev_id); - if (status != FWK_SUCCESS) - return status; - sys_ppu_transition_count++; if (sys_ppu_transition_count < system_power_ctx.dev_count) |