lib: sbi_hsm: Don't use sbi_platform_hart_disabled() API
authorAnup Patel <anup.patel@wdc.com>
Sat, 14 Mar 2020 13:56:22 +0000 (19:26 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 19 Mar 2020 03:56:25 +0000 (09:26 +0530)
commit814f38dc1d9ec6cd7f75b0d6be15e861ddac9ac5
tree001af4c2a9ee6b373defe2deb20d2ca00a2e6091
parentdb187d616c6bfd9f01bbc566117bf5a6241660c1
lib: sbi_hsm: Don't use sbi_platform_hart_disabled() API

Checking return value of sbi_hartid_to_scratch() is sufficient
so no need to explicitly check for disabled HART using the
sbi_platform_hart_disabled() API.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_hsm.c