git: 36499dc78923 - main - Fix a set but not used warning in the arm GIC driver
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 13:32:13 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=36499dc78923b5846c6371845929a1008445eb01 commit 36499dc78923b5846c6371845929a1008445eb01 Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2021-12-10 12:30:01 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2021-12-10 13:29:11 +0000 Fix a set but not used warning in the arm GIC driver Sponsored by: Innovate UK --- sys/arm/arm/gic.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/arm/arm/gic.c b/sys/arm/arm/gic.c index f281f29125b6..e285747678de 100644 --- a/sys/arm/arm/gic.c +++ b/sys/arm/arm/gic.c @@ -510,10 +510,6 @@ arm_gic_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) static int arm_gic_write_ivar(device_t dev, device_t child, int which, uintptr_t value) { - struct arm_gic_softc *sc; - - sc = device_get_softc(dev); - switch(which) { case GIC_IVAR_HW_REV: case GIC_IVAR_BUS: