bsp/riscv: Remove unused variable

Update #3433.
This commit is contained in:
Sebastian Huber
2018-08-01 11:15:55 +02:00
parent 56b0387d2f
commit dee2ebbaa6

View File

@@ -48,8 +48,6 @@
volatile RISCV_CLINT_regs *riscv_clint;
static volatile RISCV_PLIC_regs *riscv_plic;
/*
* The lovely PLIC has an interrupt enable bit per hart for each interrupt
* source. This makes the interrupt enable/disable a bit difficult. We have
@@ -162,8 +160,6 @@ static void riscv_plic_init(const void *fdt)
bsp_fatal(RISCV_FATAL_NO_PLIC_REG_IN_DEVICE_TREE);
}
riscv_plic = plic;
val = fdt_getprop(fdt, node, "riscv,ndev", &len);
if (val == NULL || len != 4) {
bsp_fatal(RISCV_FATAL_INVALID_PLIC_NDEV_IN_DEVICE_TREE);