diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-04-17 15:10:18 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-04-17 15:10:18 +0100 |
commit | b3323cd6bddf38ba9e944b16573d429073d60723 (patch) | |
tree | f5672127319d6d625c3af6a92b1476f3459a8b0b /include/lib/smccc.h | |
parent | 0f17a683246e20869395223215bb5e2f4fb1d81e (diff) | |
download | platform_external_arm-trusted-firmware-b3323cd6bddf38ba9e944b16573d429073d60723.tar.gz platform_external_arm-trusted-firmware-b3323cd6bddf38ba9e944b16573d429073d60723.tar.bz2 platform_external_arm-trusted-firmware-b3323cd6bddf38ba9e944b16573d429073d60723.zip |
Fix some MISRA defects in SPM code
Change-Id: I989c1f4aef8e3cb20d5d19e6347575e6449bb60b
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/lib/smccc.h')
-rw-r--r-- | include/lib/smccc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lib/smccc.h b/include/lib/smccc.h index d68342032..b1d4dea86 100644 --- a/include/lib/smccc.h +++ b/include/lib/smccc.h @@ -76,8 +76,8 @@ #define SMC_FROM_SECURE (U(0) << 0) #define SMC_FROM_NON_SECURE (U(1) << 0) -#define is_caller_non_secure(_f) (!!(_f & SMC_FROM_NON_SECURE)) -#define is_caller_secure(_f) (!(is_caller_non_secure(_f))) +#define is_caller_non_secure(_f) (((_f) & SMC_FROM_NON_SECURE) != U(0)) +#define is_caller_secure(_f) (!is_caller_non_secure(_f)) /* The macro below is used to identify a Standard Service SMC call */ #define is_std_svc_call(_fid) ((((_fid) >> FUNCID_OEN_SHIFT) & \ |