summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/utstate.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-10-31 09:30:48 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-31 14:37:34 +0100
commit6208a3dd370c73101d28d761f562723755108803 (patch)
treec92271ae8f89034ed20ab9fb734a750cc406f0c6 /drivers/acpi/acpica/utstate.c
parentbd48d677670bb35548718a1fd54c2c114a449973 (diff)
ACPICA: Cleanup useless memset invocations.
This patch removes unnecessary memset() invocations where kmem_cache_zalloc() is used for allocating memory. It also helps to reduce source code differences between ACPICA upstream and Linux. [rjw: Changelog] Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utstate.c')
-rw-r--r--drivers/acpi/acpica/utstate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/utstate.c b/drivers/acpi/acpica/utstate.c
index a6b729d4c1dc..03c4c2febd84 100644
--- a/drivers/acpi/acpica/utstate.c
+++ b/drivers/acpi/acpica/utstate.c
@@ -161,7 +161,6 @@ union acpi_generic_state *acpi_ut_create_generic_state(void)
if (state) {
/* Initialize */
- memset(state, 0, sizeof(union acpi_generic_state));
state->common.descriptor_type = ACPI_DESC_TYPE_STATE;
}