diff options
author | andreast <andreast@FreeBSD.org> | 2011-01-06 20:19:01 +0000 |
---|---|---|
committer | andreast <andreast@FreeBSD.org> | 2011-01-06 20:19:01 +0000 |
commit | b3910b1de1b8d471bd61ec5de83e1a07d03ea512 (patch) | |
tree | 6e3101400b08e8d0ca8ab1ddae979bdefce18c28 /sys/powerpc/powermac | |
parent | 406dbc36d263fb5aa578c85efc239621e4d0bad9 (diff) | |
download | FreeBSD-src-b3910b1de1b8d471bd61ec5de83e1a07d03ea512.zip FreeBSD-src-b3910b1de1b8d471bd61ec5de83e1a07d03ea512.tar.gz |
Remove unused variables. Spotted by a cppcheck
(devel/cppcheck, http://sourceforge.net/projects/cppcheck) run.
Approved by: nwhitehorn (mentor)
Diffstat (limited to 'sys/powerpc/powermac')
-rw-r--r-- | sys/powerpc/powermac/macgpio.c | 2 | ||||
-rw-r--r-- | sys/powerpc/powermac/uninorth.c | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/sys/powerpc/powermac/macgpio.c b/sys/powerpc/powermac/macgpio.c index 5bdd54d..a5d5772 100644 --- a/sys/powerpc/powermac/macgpio.c +++ b/sys/powerpc/powermac/macgpio.c @@ -264,10 +264,8 @@ static struct resource * macgpio_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) { - struct macgpio_softc *sc; struct macgpio_devinfo *dinfo; - sc = device_get_softc(bus); dinfo = device_get_ivars(child); if (type != SYS_RES_IRQ) diff --git a/sys/powerpc/powermac/uninorth.c b/sys/powerpc/powermac/uninorth.c index dba91ca..5921a5b 100644 --- a/sys/powerpc/powermac/uninorth.c +++ b/sys/powerpc/powermac/uninorth.c @@ -530,11 +530,8 @@ static int unin_chip_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) { - struct unin_chip_softc *sc; void *p; - sc = device_get_softc(bus); - if (type == SYS_RES_IRQ) return (bus_activate_resource(bus, type, rid, res)); |