mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: utils/irqchip: Don't check hartid in imsic_update_hartid_table()
The imsic_map_hartid_to_data() already checks hartid before using so we don't need to check in imsic_update_hartid_table(). Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
This commit is contained in:
@@ -12,7 +12,6 @@
|
|||||||
#include <sbi/riscv_asm.h>
|
#include <sbi/riscv_asm.h>
|
||||||
#include <sbi/sbi_error.h>
|
#include <sbi/sbi_error.h>
|
||||||
#include <sbi/sbi_heap.h>
|
#include <sbi/sbi_heap.h>
|
||||||
#include <sbi/sbi_hartmask.h>
|
|
||||||
#include <sbi_utils/fdt/fdt_helper.h>
|
#include <sbi_utils/fdt/fdt_helper.h>
|
||||||
#include <sbi_utils/irqchip/fdt_irqchip.h>
|
#include <sbi_utils/irqchip/fdt_irqchip.h>
|
||||||
#include <sbi_utils/irqchip/imsic.h>
|
#include <sbi_utils/irqchip/imsic.h>
|
||||||
@@ -44,8 +43,6 @@ static int irqchip_imsic_update_hartid_table(void *fdt, int nodeoff,
|
|||||||
err = fdt_parse_hart_id(fdt, cpu_offset, &hartid);
|
err = fdt_parse_hart_id(fdt, cpu_offset, &hartid);
|
||||||
if (err)
|
if (err)
|
||||||
return SBI_EINVAL;
|
return SBI_EINVAL;
|
||||||
if (SBI_HARTMASK_MAX_BITS <= hartid)
|
|
||||||
return SBI_EINVAL;
|
|
||||||
|
|
||||||
switch (hwirq) {
|
switch (hwirq) {
|
||||||
case IRQ_M_EXT:
|
case IRQ_M_EXT:
|
||||||
|
Reference in New Issue
Block a user