aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/smccc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/smccc.h')
-rw-r--r--include/lib/smccc.h4
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) & \