Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2012 18:33:43 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r240048 - stable/7/sys/dev/acpica
Message-ID:  <201209021833.q82IXhgs050071@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Sep  2 18:33:43 2012
New Revision: 240048
URL: http://svn.freebsd.org/changeset/base/240048

Log:
  MFC r238199:
  	Remove variables which are initialized but never used thereafter
  	reported by gcc46 warning
  
  Approved by:	cperciva (implicit)

Modified:
  stable/7/sys/dev/acpica/acpi_powerres.c
Directory Properties:
  stable/7/sys/   (props changed)

Modified: stable/7/sys/dev/acpica/acpi_powerres.c
==============================================================================
--- stable/7/sys/dev/acpica/acpi_powerres.c	Sun Sep  2 18:31:23 2012	(r240047)
+++ stable/7/sys/dev/acpica/acpi_powerres.c	Sun Sep  2 18:33:43 2012	(r240048)
@@ -312,7 +312,6 @@ acpi_pwr_switch_consumer(ACPI_HANDLE con
     ACPI_OBJECT			*reslist_object;
     ACPI_STATUS			status;
     char			*method_name, *reslist_name;
-    int				res_changed;
 
     ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
 
@@ -443,7 +442,7 @@ acpi_pwr_switch_consumer(ACPI_HANDLE con
      * Now we are ready to switch, so kill off any current power
      * resource references.
      */
-    res_changed = acpi_pwr_dereference_resource(pc);
+    acpi_pwr_dereference_resource(pc);
 
     /*
      * Add new power resource references, if we have any.  Traverse the
@@ -455,7 +454,6 @@ acpi_pwr_switch_consumer(ACPI_HANDLE con
 			  reslist_object->Package.Count));
 	acpi_ForeachPackageObject(reslist_object, acpi_pwr_reference_resource,
 				  pc);
-	res_changed = 1;
     }
 
     /*



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