diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-17 08:11:07 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-17 08:11:07 -0500 |
commit | 8bc5053bcdff09a6d1c6a61a79a9014884aa0a14 (patch) | |
tree | 8c6fc7d38f3ac9885492e37778c497f1a9ce175e /drivers | |
parent | f33ce568366ab61b5685bae07306e40f17beb943 (diff) |
ACPI / scan: Remove unnecessary initialization of local variables
The local variables in acpi_bus_get_power_flags() need not be
initialized upfront, so change the code accordingly.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/scan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 10c98ff6b026..8da315418d94 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1087,9 +1087,9 @@ static void acpi_bus_init_power_state(struct acpi_device *device, int state) | |||
1087 | 1087 | ||
1088 | static void acpi_bus_get_power_flags(struct acpi_device *device) | 1088 | static void acpi_bus_get_power_flags(struct acpi_device *device) |
1089 | { | 1089 | { |
1090 | acpi_status status = 0; | 1090 | acpi_status status; |
1091 | acpi_handle handle = NULL; | 1091 | acpi_handle handle; |
1092 | u32 i = 0; | 1092 | u32 i; |
1093 | 1093 | ||
1094 | /* Presence of _PS0|_PR0 indicates 'power manageable' */ | 1094 | /* Presence of _PS0|_PR0 indicates 'power manageable' */ |
1095 | status = acpi_get_handle(device->handle, "_PS0", &handle); | 1095 | status = acpi_get_handle(device->handle, "_PS0", &handle); |