lib: sbi: sse: remove superfluous sbi_list_empty() check

The list loop below that check is actually not looping if the list is
empty so there was no need for this check.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reported-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Clément Léger 2024-04-09 12:02:05 +02:00 committed by Anup Patel
parent 22ff75099c
commit d528dbfd4b
1 changed files with 0 additions and 3 deletions

View File

@ -578,9 +578,6 @@ void sbi_sse_process_pending_events(struct sbi_trap_regs *regs)
spin_lock(&state->enabled_event_lock);
if (sbi_list_empty(&state->enabled_event_list))
goto out;
sbi_list_for_each_entry(e, &state->enabled_event_list, node) {
ret = sse_event_check_inject(e, regs);
if (ret)