[rtems commit] bsp/riscv: Remove unused variable
Sebastian Huber
sebh at rtems.org
Wed Aug 1 09:19:17 UTC 2018
Module: rtems
Branch: master
Commit: dee2ebbaa680f50189c1e0bd71128d8362a6bfc4
Changeset: http://git.rtems.org/rtems/commit/?id=dee2ebbaa680f50189c1e0bd71128d8362a6bfc4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Aug 1 11:15:55 2018 +0200
bsp/riscv: Remove unused variable
Update #3433.
---
bsps/riscv/riscv/irq/irq.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/bsps/riscv/riscv/irq/irq.c b/bsps/riscv/riscv/irq/irq.c
index 0142efb..a369a81 100644
--- a/bsps/riscv/riscv/irq/irq.c
+++ b/bsps/riscv/riscv/irq/irq.c
@@ -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);
More information about the vc
mailing list