Commit 9556ec4e authored by Bob Moore's avatar Bob Moore Committed by Rafael J. Wysocki

ACPICA: Use os_allocate_zeroed

ACPICA commit 2b896c59e53243c95600f2a3f7e1fd02c044cb37

Eliminates an unnecessary memset.
Suggested-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Link: https://github.com/acpica/acpica/commit/2b896c59Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent d8303ace
...@@ -95,13 +95,11 @@ acpi_ut_create_list(const char *list_name, ...@@ -95,13 +95,11 @@ acpi_ut_create_list(const char *list_name,
{ {
struct acpi_memory_list *cache; 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) { if (!cache) {
return (AE_NO_MEMORY); return (AE_NO_MEMORY);
} }
memset(cache, 0, sizeof(struct acpi_memory_list));
cache->list_name = list_name; cache->list_name = list_name;
cache->object_size = object_size; cache->object_size = object_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment