From 362030bf0679c118233fbe69fb287d8742e598ee Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Wed, 1 Aug 2018 16:42:10 +0100 Subject: psci: Use bool in internal interfaces Change-Id: I77c9cd2d1d6d0122cc49917fa686014bee154589 Signed-off-by: Antonio Nino Diaz --- lib/psci/psci_private.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/psci/psci_private.h') diff --git a/lib/psci/psci_private.h b/lib/psci/psci_private.h index 2ea9f76c..82b951db 100644 --- a/lib/psci/psci_private.h +++ b/lib/psci/psci_private.h @@ -14,6 +14,7 @@ #include #include #include +#include /* * The PSCI capability which are provided by the generic code but does not @@ -93,10 +94,10 @@ static inline plat_local_state_t psci_get_cpu_local_state_by_idx(int idx) } /* Helper function to identify a CPU standby request in PSCI Suspend call */ -static inline int is_cpu_standby_req(unsigned int is_power_down_state, - unsigned int retn_lvl) +static inline bool is_cpu_standby_req(unsigned int is_power_down_state, + unsigned int retn_lvl) { - return ((is_power_down_state == 0U) && (retn_lvl == 0U)) ? 1 : 0; + return (is_power_down_state == 0U) && (retn_lvl == 0U); } /******************************************************************************* -- cgit v1.2.3