From: Clément Léger Date: Tue, 9 Apr 2024 10:02:05 +0000 (+0200) Subject: lib: sbi: sse: remove superfluous sbi_list_empty() check X-Git-Tag: v1.5~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d528dbfd4ba674dabb0a7b4466112e64c6ada3c6;p=platform%2Fkernel%2Fopensbi.git 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 Reported-by: Samuel Holland Reviewed-by: Anup Patel --- diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c index 1b6048d..2c7f78d 100644 --- a/lib/sbi/sbi_sse.c +++ b/lib/sbi/sbi_sse.c @@ -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)