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 <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Xiang W <wxjstz@126.com>
This commit is contained in:
Samuel Holland
2023-12-08 13:22:59 -08:00
committed by Anup Patel
parent 446fa65eb5
commit 2707250495

View File

@@ -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;