diff options
| author | Anup Patel <[email protected]> | 2020-03-02 13:15:17 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-03-08 11:02:51 +0530 |
| commit | 8c83fb2fc8ef0c356f291a7e6517dad70a759981 (patch) | |
| tree | 30a6132d054ba70e155846b1adf9e0ed2134ac24 | |
| 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 <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
| -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 36fafed1..250cc7c8 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 |
