diff options
author | Bob Moore <robert.moore@intel.com> | 2012-10-30 22:28:03 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:31:29 -0500 |
commit | eed9525ac445f446a5dabd70d32938044f04fad5 (patch) | |
tree | 0f2a0e35f8c9c14f7be9aeeeca2aad61bc2e38c6 /drivers/acpi/acpica/nsxfname.c | |
parent | 2d2dd50880d018e42076252f9fff16e11c567de0 (diff) |
ACPICA: Deploy ACPI_MOVE_NAME across ACPICA source base
Replaces instances of strncpy(...,4) for ACPI_NAMEs.
ACPI_MOVE_NAME optimizes these to a single 32-bit copy on machines
that support misaligned transfers.
Signed-off-by: Bob Moore <robert.moore@intel.com>
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/nsxfname.c')
-rw-r--r-- | drivers/acpi/acpica/nsxfname.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/nsxfname.c b/drivers/acpi/acpica/nsxfname.c index ce8789771176..2d10df2ef660 100644 --- a/drivers/acpi/acpica/nsxfname.c +++ b/drivers/acpi/acpica/nsxfname.c | |||
@@ -202,8 +202,7 @@ acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer) | |||
202 | 202 | ||
203 | /* Just copy the ACPI name from the Node and zero terminate it */ | 203 | /* Just copy the ACPI name from the Node and zero terminate it */ |
204 | 204 | ||
205 | ACPI_STRNCPY(buffer->pointer, acpi_ut_get_node_name(node), | 205 | ACPI_MOVE_NAME(buffer->pointer, acpi_ut_get_node_name(node)); |
206 | ACPI_NAME_SIZE); | ||
207 | ((char *)buffer->pointer)[ACPI_NAME_SIZE] = 0; | 206 | ((char *)buffer->pointer)[ACPI_NAME_SIZE] = 0; |
208 | status = AE_OK; | 207 | status = AE_OK; |
209 | 208 | ||