aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2018-02-28 17:18:55 -0800
committerArve Hjønnevåg <arve@android.com>2018-02-28 17:18:55 -0800
commitdaf0a726eadbc6b8a09b3e3ae7a94dcdac20664e (patch)
tree385baa59d974b28189d3bdaa139485df411fff0a
parent8ef782df8b6be2150de9e4568995d26c20b32617 (diff)
downloadtrusted-firmware-a-daf0a726eadbc6b8a09b3e3ae7a94dcdac20664e.tar.gz
trusty: Fix reported static check errors
Change-Id: I9f9a8a159b41be1c865a20801d03a1b2934c3cac
-rw-r--r--services/spd/trusty/generic-arm64-smcall.c2
-rw-r--r--services/spd/trusty/trusty.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/services/spd/trusty/generic-arm64-smcall.c b/services/spd/trusty/generic-arm64-smcall.c
index 7916fca24c..38da279e4c 100644
--- a/services/spd/trusty/generic-arm64-smcall.c
+++ b/services/spd/trusty/generic-arm64-smcall.c
@@ -66,7 +66,7 @@ static uint64_t trusty_generic_platform_smc(uint32_t smc_fid,
void *handle,
uint64_t flags)
{
- switch(smc_fid) {
+ switch (smc_fid) {
case SMC_FC_DEBUG_PUTC:
trusty_dputc(x1, is_caller_secure(flags));
SMC_RET1(handle, 0);
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c
index e62f7396f4..e27df154a6 100644
--- a/services/spd/trusty/trusty.c
+++ b/services/spd/trusty/trusty.c
@@ -409,7 +409,7 @@ static int32_t trusty_setup(void)
instr = *(uint32_t *)ep_info->pc;
- if (instr >> 24 == 0xea) {
+ if (instr >> 24 == 0xeaU) {
INFO("trusty: Found 32 bit image\n");
aarch32 = true;
} else if (instr >> 8 == 0xd53810 || instr >> 16 == 0x9400) {