diff options
author | andreast <andreast@FreeBSD.org> | 2011-01-20 20:23:03 +0000 |
---|---|---|
committer | andreast <andreast@FreeBSD.org> | 2011-01-20 20:23:03 +0000 |
commit | a98a74c7744c1958b5cae1bbe728e70bb73dd429 (patch) | |
tree | 960707bb71849c09c7e2561b336d95a1585a06c6 /sys/powerpc/powermac | |
parent | ad366db2011f14e8f5f98e4ccdcb57ffd22f5c23 (diff) | |
download | FreeBSD-src-a98a74c7744c1958b5cae1bbe728e70bb73dd429.zip FreeBSD-src-a98a74c7744c1958b5cae1bbe728e70bb73dd429.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/cpcht.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/powerpc/powermac/cpcht.c b/sys/powerpc/powermac/cpcht.c index 618dd224..4ee6aee 100644 --- a/sys/powerpc/powermac/cpcht.c +++ b/sys/powerpc/powermac/cpcht.c @@ -475,10 +475,6 @@ cpcht_write_config(device_t dev, u_int bus, u_int slot, u_int func, static int cpcht_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) { - struct cpcht_softc *sc; - - sc = device_get_softc(dev); - switch (which) { case PCIB_IVAR_DOMAIN: *result = device_get_unit(dev); @@ -514,13 +510,12 @@ cpcht_alloc_resource(device_t bus, device_t child, int type, int *rid, struct cpcht_softc *sc; struct resource *rv; struct rman *rm; - int needactivate, err; + int needactivate; needactivate = flags & RF_ACTIVE; flags &= ~RF_ACTIVE; sc = device_get_softc(bus); - err = 0; switch (type) { case SYS_RES_IOPORT: @@ -569,9 +564,6 @@ cpcht_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) { void *p; - struct cpcht_softc *sc; - - sc = device_get_softc(bus); if (type == SYS_RES_IRQ) return (bus_activate_resource(bus, type, rid, res)); |