From: Rafael J. Wysocki Date: Thu, 17 Jan 2013 13:11:07 +0000 (+0100) Subject: ACPI / scan: Remove unnecessary initialization of local variables X-Git-Tag: upstream/snapshot3+hdmi~5650^2^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bc5053bcdff09a6d1c6a61a79a9014884aa0a14;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 --- diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 10c98ff..8da3154 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) static void acpi_bus_get_power_flags(struct acpi_device *device) { - acpi_status status = 0; - acpi_handle handle = NULL; - u32 i = 0; + acpi_status status; + acpi_handle handle; + u32 i; /* Presence of _PS0|_PR0 indicates 'power manageable' */ status = acpi_get_handle(device->handle, "_PS0", &handle);