git: 434cb1c4a631 - main - riscv: Fix PLIC -Wunused-but-set-variable warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 04:54:03 UTC
The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=434cb1c4a6316d0966b5cd029e6ae40d5b944406 commit 434cb1c4a6316d0966b5cd029e6ae40d5b944406 Author: Jessica Clarke <jrtc27@FreeBSD.org> AuthorDate: 2021-12-10 04:51:32 +0000 Commit: Jessica Clarke <jrtc27@FreeBSD.org> CommitDate: 2021-12-10 04:51:32 +0000 riscv: Fix PLIC -Wunused-but-set-variable warnings --- sys/riscv/riscv/plic.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/riscv/riscv/plic.c b/sys/riscv/riscv/plic.c index 029525938161..aeb2b4835d16 100644 --- a/sys/riscv/riscv/plic.c +++ b/sys/riscv/riscv/plic.c @@ -402,12 +402,6 @@ static int plic_setup_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, struct intr_map_data *data) { - struct plic_softc *sc; - struct plic_irqsrc *src; - - sc = device_get_softc(dev); - src = (struct plic_irqsrc *)isrc; - CPU_ZERO(&isrc->isrc_cpu); plic_bind_intr(dev, isrc);