Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 23:22:58 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192030 - head/sys/dev/acpi_support
Message-ID:  <200905122322.n4CNMwmK035817@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905122322.n4CNMwmK035817>