diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-02 13:15:17 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-08 11:02:51 +0530 |
commit | 8c83fb2fc8ef0c356f291a7e6517dad70a759981 (patch) | |
tree | 30a6132d054ba70e155846b1adf9e0ed2134ac24 /lib/sbi/sbi_hsm.c | |
parent | e1a5b737ef1eab8b7ada2f091548355949341315 (diff) |
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>
Diffstat (limited to 'lib/sbi/sbi_hsm.c')
-rw-r--r-- | lib/sbi/sbi_hsm.c | 3 |
1 files changed, 1 insertions, 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 |