git: 297c86f8bcdc - stable/13 - riscv: Fix PLIC -Wunused-but-set-variable warnings

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 01:40:09 UTC
The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=297c86f8bcdce7d2b7a3e9e44de852e2b09e6f50

commit 297c86f8bcdce7d2b7a3e9e44de852e2b09e6f50
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-12-10 04:51:32 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2022-01-24 23:59:35 +0000

    riscv: Fix PLIC -Wunused-but-set-variable warnings
    
    (cherry picked from commit 434cb1c4a6316d0966b5cd029e6ae40d5b944406)
---
 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);