diff options
author | brueffer <brueffer@FreeBSD.org> | 2009-05-12 23:22:58 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2009-05-12 23:22:58 +0000 |
commit | 5f1c9ee599c0395cb22c8897256fcf1ac9a89816 (patch) | |
tree | 3bed3c7e64adfe91f3032b2a113aaad68a18a544 /sys/dev/acpi_support | |
parent | 1e50e07e85470e9f9207ffb57e101aa966fba32c (diff) | |
download | FreeBSD-src-5f1c9ee599c0395cb22c8897256fcf1ac9a89816.zip FreeBSD-src-5f1c9ee599c0395cb22c8897256fcf1ac9a89816.tar.gz |
Remove unused variables.
Found with: Coverity Prevent(tm)
CID: 544, 545
Diffstat (limited to 'sys/dev/acpi_support')
-rw-r--r-- | sys/dev/acpi_support/acpi_ibm.c | 3 | ||||
-rw-r--r-- | sys/dev/acpi_support/acpi_sony.c | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c index ccb0c06..ca67716 100644 --- a/sys/dev/acpi_support/acpi_ibm.c +++ b/sys/dev/acpi_support/acpi_ibm.c @@ -332,7 +332,6 @@ static int acpi_ibm_attach(device_t dev) { struct acpi_ibm_softc *sc; - struct acpi_softc *acpi_sc; devclass_t ec_devclass; ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__); @@ -341,8 +340,6 @@ acpi_ibm_attach(device_t dev) sc->dev = dev; sc->handle = acpi_get_handle(dev); - acpi_sc = acpi_device_get_parent_softc(dev); - /* Look for the first embedded controller */ if (!(ec_devclass = devclass_find ("acpi_ec"))) { if (bootverbose) diff --git a/sys/dev/acpi_support/acpi_sony.c b/sys/dev/acpi_support/acpi_sony.c index 808d0da..88195c2 100644 --- a/sys/dev/acpi_support/acpi_sony.c +++ b/sys/dev/acpi_support/acpi_sony.c @@ -102,10 +102,7 @@ static char *sny_id[] = {"SNY5001", NULL}; static int acpi_sony_probe(device_t dev) { - struct acpi_sony_softc *sc; - int ret = ENXIO; - - sc = device_get_softc(dev); + int ret = ENXIO; if (ACPI_ID_PROBE(device_get_parent(dev), dev, sny_id)) { device_set_desc(dev, "Sony notebook controller"); |