svn commit: r238199 - head/sys/dev/acpica
Eitan Adler
eadler at FreeBSD.org
Sat Jul 7 17:13:09 UTC 2012
Author: eadler
Date: Sat Jul 7 17:13:09 2012
New Revision: 238199
URL: http://svn.freebsd.org/changeset/base/238199
Log:
Remove variables which are initialized but never used thereafter
reported by gcc46 warning
Approved by: cperciva
MFC after: 1 week
Modified:
head/sys/dev/acpica/acpi_powerres.c
Modified: head/sys/dev/acpica/acpi_powerres.c
==============================================================================
--- head/sys/dev/acpica/acpi_powerres.c Sat Jul 7 17:09:44 2012 (r238198)
+++ head/sys/dev/acpica/acpi_powerres.c Sat Jul 7 17:13:09 2012 (r238199)
@@ -314,7 +314,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__);
@@ -445,7 +444,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
@@ -457,7 +456,6 @@ acpi_pwr_switch_consumer(ACPI_HANDLE con
reslist_object->Package.Count));
acpi_ForeachPackageObject(reslist_object, acpi_pwr_reference_resource,
pc);
- res_changed = 1;
}
/*
More information about the svn-src-head
mailing list