lib: sbi: sse: remove superfluous sbi_list_empty() check
authorClément Léger <cleger@rivosinc.com>
Tue, 9 Apr 2024 10:02:05 +0000 (12:02 +0200)
committerAnup Patel <anup@brainfault.org>
Tue, 7 May 2024 11:57:31 +0000 (17:27 +0530)
commitd528dbfd4ba674dabb0a7b4466112e64c6ada3c6
treecbc48b36af9c86ecec9fa7ae99ba2f79c95eee3f
parent22ff75099c53a4bac72abc3fa10157aabeb3ce49
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>
lib/sbi/sbi_sse.c