summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorClément Léger <[email protected]>2024-04-09 12:02:05 +0200
committerAnup Patel <[email protected]>2024-05-07 17:27:31 +0530
commitd528dbfd4ba674dabb0a7b4466112e64c6ada3c6 (patch)
treecbc48b36af9c86ecec9fa7ae99ba2f79c95eee3f /lib
parent22ff75099c53a4bac72abc3fa10157aabeb3ce49 (diff)
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 <[email protected]> Reported-by: Samuel Holland <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi/sbi_sse.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sbi/sbi_sse.c b/lib/sbi/sbi_sse.c
index 1b6048d8..2c7f78d2 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)