projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33ce56
)
ACPI / scan: Remove unnecessary initialization of local variables
author
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 17 Jan 2013 13:11:07 +0000
(14:11 +0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 17 Jan 2013 13:11:07 +0000
(14:11 +0100)
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>
drivers/acpi/scan.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/scan.c
b/drivers/acpi/scan.c
index 10c98ff6b026b576dd84cd15ebd6c1883c8041c8..8da315418d946bd9a1ef264ffe64772c1988739e 100644
(file)
--- 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);