aboutsummaryrefslogtreecommitdiff
path: root/module/msys_rom
diff options
context:
space:
mode:
authorChris Kay <chris.kay@arm.com>2020-06-08 18:35:27 +0100
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-06-09 19:26:33 +0100
commit23575c0ed56ac8baa16232852e73ab78b3bb2e2f (patch)
tree4de45b5be2bdaf52c53fdd710abe4203e50da688 /module/msys_rom
parent7b01ad8451e9a6088584d70d799feb64e818e17e (diff)
misc: Replace `fwk_assert(false)` with `fwk_unexpected()`
This commit replaces any calls to `fwk_assert(false)` with a call to `fwk_unexpected()`. Forced assertions are used for two different scenarios: - Unreachable code, which should use `fwk_unreachable()` - Code that should trap only in debug mode, which should use `fwk_unexpected()` `fwk_unexpected()` is the only one of these options with no side effects that did not already occur in the original code, so these assertions have been transformed to expectations. Some of these may, and should, be transformed later to unreachable code. Change-Id: I8325259b41a03a096b62a420bd0c7d52b025fcf4 Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'module/msys_rom')
-rw-r--r--module/msys_rom/src/mod_msys_rom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/msys_rom/src/mod_msys_rom.c b/module/msys_rom/src/mod_msys_rom.c
index c2fa76fd..1d531fa7 100644
--- a/module/msys_rom/src/mod_msys_rom.c
+++ b/module/msys_rom/src/mod_msys_rom.c
@@ -153,7 +153,7 @@ static int msys_rom_process_notification(
/* At least one notification response must be outstanding */
if (ctx.notification_count == 0) {
- fwk_assert(false);
+ fwk_unexpected();
return FWK_E_PANIC;
}