summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/nexus.c
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2011-01-06 20:19:01 +0000
committerandreast <andreast@FreeBSD.org>2011-01-06 20:19:01 +0000
commitb3910b1de1b8d471bd61ec5de83e1a07d03ea512 (patch)
tree6e3101400b08e8d0ca8ab1ddae979bdefce18c28 /sys/powerpc/aim/nexus.c
parent406dbc36d263fb5aa578c85efc239621e4d0bad9 (diff)
downloadFreeBSD-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/aim/nexus.c')
-rw-r--r--sys/powerpc/aim/nexus.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/powerpc/aim/nexus.c b/sys/powerpc/aim/nexus.c
index 203ae81..4da4e9f 100644
--- a/sys/powerpc/aim/nexus.c
+++ b/sys/powerpc/aim/nexus.c
@@ -340,7 +340,6 @@ static int
nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
driver_filter_t *filter, driver_intr_t *ihand, void *arg, void **cookiep)
{
- driver_t *driver;
int error;
/* somebody tried to setup an irq that failed to allocate! */
@@ -351,8 +350,6 @@ nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
if ((rman_get_flags(res) & RF_SHAREABLE) == 0)
flags |= INTR_EXCL;
- driver = device_get_driver(child);
-
/*
* We depend here on rman_activate_resource() being idempotent.
*/
OpenPOWER on IntegriCloud