From 8c83fb2fc8ef0c356f291a7e6517dad70a759981 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 2 Mar 2020 13:15:17 +0530 Subject: [PATCH] lib: Fix return type of sbi_hsm_hart_started() The return type of sbi_hsm_hart_started() should be bool. Signed-off-by: Anup Patel Reviewed-by: Atish Patra Reviewed-by: Bin Meng --- lib/sbi/sbi_hsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/sbi/sbi_hsm.c b/lib/sbi/sbi_hsm.c index 36fafed..250cc7c 100644 --- a/lib/sbi/sbi_hsm.c +++ b/lib/sbi/sbi_hsm.c @@ -69,9 +69,8 @@ int sbi_hsm_hart_get_state(struct sbi_scratch *scratch, u32 hartid) return hstate; } -int sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid) +bool sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid) { - if (sbi_hsm_hart_get_state(scratch, hartid) == SBI_HART_STARTED) return TRUE; else