diff options
| author | Samuel Holland <[email protected]> | 2023-12-08 13:22:59 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-18 19:26:35 +0530 |
| commit | 27072504958c2eabddf1fa6ab7177bfe8035beba (patch) | |
| tree | d3e33cebc72b85c6713f2dbbcc35cb5a960ca40d | |
| parent | 446fa65eb57947481583df043bc613a164172131 (diff) | |
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 <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Xiang W <[email protected]>
| -rw-r--r-- | lib/sbi/sbi_ipi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
