Author: brueffer Date: Tue May 12 23:22:58 2009 New Revision: 192030 URL: http://svn.freebsd.org/changeset/base/192030
Log: Remove unused variables. Found with: Coverity Prevent(tm) CID: 544, 545 Modified: head/sys/dev/acpi_support/acpi_ibm.c head/sys/dev/acpi_support/acpi_sony.c Modified: head/sys/dev/acpi_support/acpi_ibm.c ============================================================================== --- head/sys/dev/acpi_support/acpi_ibm.c Tue May 12 22:11:02 2009 (r192029) +++ head/sys/dev/acpi_support/acpi_ibm.c Tue May 12 23:22:58 2009 (r192030) @@ -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) Modified: head/sys/dev/acpi_support/acpi_sony.c ============================================================================== --- head/sys/dev/acpi_support/acpi_sony.c Tue May 12 22:11:02 2009 (r192029) +++ head/sys/dev/acpi_support/acpi_sony.c Tue May 12 23:22:58 2009 (r192030) @@ -102,10 +102,7 @@ static char *sny_id[] = {"SNY5001", N 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"); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"