mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-06-27 00:28:21 +00:00
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:
parent
e1a5b737ef
commit
8c83fb2fc8
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue