diff options
author | Chris Kay <chris.kay@arm.com> | 2020-06-08 17:51:56 +0100 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2020-06-09 19:26:33 +0100 |
commit | 6094316869ea7549559acb738a73dc284313379c (patch) | |
tree | 17933bf838dc7d7cbd4e8151542d1b6c24f97a15 /module/system_power | |
parent | 995e78d8ed0563018379418caa45c0a64ece7acb (diff) |
fwk: Rework assertion logic
This commit modifies the assertion logic so that it is inlineable, and
uses more of the facilities provided by the compiler and standard
library for more robust error handling.
Change-Id: I3064b96eccf183b704aba0c319c94c43131ab25b
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'module/system_power')
-rw-r--r-- | module/system_power/src/mod_system_power.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/system_power/src/mod_system_power.c b/module/system_power/src/mod_system_power.c index 6bd15a82..3e9304fa 100644 --- a/module/system_power/src/mod_system_power.c +++ b/module/system_power/src/mod_system_power.c @@ -324,7 +324,7 @@ static void soc_wakeup_handler(void) status = system_power_ctx.mod_pd_restricted_api->set_composite_state_async( system_power_ctx.last_core_pd_id, false, state); - fwk_expect(status == FWK_SUCCESS); + fwk_check(status == FWK_SUCCESS); } static const struct mod_pd_driver_api system_power_power_domain_driver_api = { @@ -373,7 +373,7 @@ static int system_power_mod_init(fwk_id_t module_id, const struct mod_system_power_config *config; fwk_assert(data != NULL); - fwk_expect(element_count > 0); + fwk_check(element_count > 0); system_power_ctx.config = config = data; system_power_ctx.mod_pd_system_id = FWK_ID_NONE; |