From 27072504958c2eabddf1fa6ab7177bfe8035beba Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 8 Dec 2023 13:22:59 -0800 Subject: [PATCH] lib: sbi_ipi: Drop unnecessary ipi_process check sbi_ipi_event_create() disallows registering an IPI event with a NULL .process callback, so the function pointer will never be NULL here. Signed-off-by: Samuel Holland Reviewed-by: Anup Patel Reviewed-by: Xiang W --- lib/sbi/sbi_ipi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbi/sbi_ipi.c b/lib/sbi/sbi_ipi.c index bbc97f7f..048aaa66 100644 --- a/lib/sbi/sbi_ipi.c +++ b/lib/sbi/sbi_ipi.c @@ -243,7 +243,7 @@ void sbi_ipi_process(void) while (ipi_type) { if (ipi_type & 1UL) { ipi_ops = ipi_ops_array[ipi_event]; - if (ipi_ops && ipi_ops->process) + if (ipi_ops) ipi_ops->process(scratch); } ipi_type = ipi_type >> 1;