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 <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Anup Patel 2020-03-02 13:15:17 +05:30 committed by Anup Patel
parent e1a5b737ef
commit 8c83fb2fc8

View file

@ -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