From: Bob Moore Date: Thu, 4 Aug 2016 08:43:32 +0000 (+0800) Subject: ACPICA: Use os_allocate_zeroed X-Git-Tag: v4.9-rc1~170^2~4^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9556ec4ec1d3575090f1f110c558169c5f0973a9;p=platform%2Fkernel%2Flinux-exynos.git ACPICA: Use os_allocate_zeroed ACPICA commit 2b896c59e53243c95600f2a3f7e1fd02c044cb37 Eliminates an unnecessary memset. Suggested-by: Amitoj Kaur Chawla Link: https://github.com/acpica/acpica/commit/2b896c59 Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/uttrack.c b/drivers/acpi/acpica/uttrack.c index 0df07df..df31d71 100644 --- a/drivers/acpi/acpica/uttrack.c +++ b/drivers/acpi/acpica/uttrack.c @@ -95,13 +95,11 @@ acpi_ut_create_list(const char *list_name, { struct acpi_memory_list *cache; - cache = acpi_os_allocate(sizeof(struct acpi_memory_list)); + cache = acpi_os_allocate_zeroed(sizeof(struct acpi_memory_list)); if (!cache) { return (AE_NO_MEMORY); } - memset(cache, 0, sizeof(struct acpi_memory_list)); - cache->list_name = list_name; cache->object_size = object_size;