mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
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 <wxjstz@126.com> Reviewed-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user