summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang W <[email protected]>2024-05-03 21:53:34 +0800
committerAnup Patel <[email protected]>2024-05-13 16:37:56 +0530
commit744f4956534d5fba2f42c1361139099d574347ff (patch)
tree128d4c5adc8d32128508989d4d8dbe9fa51d3ae2
parent4953bd721a917768ce11a35961ff74f75d83afe7 (diff)
lib: sbi: Removal unnecessary check dbtr_thishart_state_ptr
After getting hart_shmem_base, dbtr_thishart_state_ptr cannot be empty. So remove check code. Signed-off-by: Xiang W <[email protected]> Reviewed-by: Himanshu Chauhan <[email protected]>
-rw-r--r--lib/sbi/sbi_dbtr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/sbi/sbi_dbtr.c b/lib/sbi/sbi_dbtr.c
index 5b072853..3cc1ef86 100644
--- a/lib/sbi/sbi_dbtr.c
+++ b/lib/sbi/sbi_dbtr.c
@@ -684,8 +684,6 @@ int sbi_dbtr_update_trig(unsigned long smode,
shmem_base = hart_shmem_base();
hs = dbtr_thishart_state_ptr();
- if (!hs)
- return SBI_ERR_FAILED;
for_each_set_bit_from(idx, &trig_mask, hs->total_trigs) {
trig = INDEX_TO_TRIGGER(idx);