aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/rsutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/rsutils.c')
-rw-r--r--drivers/acpi/acpica/rsutils.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/rsutils.c b/drivers/acpi/acpica/rsutils.c
index ece3cd60cc6a..52b024df0052 100644
--- a/drivers/acpi/acpica/rsutils.c
+++ b/drivers/acpi/acpica/rsutils.c
@@ -148,7 +148,7 @@ acpi_rs_move_data(void *destination, void *source, u16 item_count, u8 move_type)
148 case ACPI_RSC_MOVE_SERIAL_VEN: 148 case ACPI_RSC_MOVE_SERIAL_VEN:
149 case ACPI_RSC_MOVE_SERIAL_RES: 149 case ACPI_RSC_MOVE_SERIAL_RES:
150 150
151 ACPI_MEMCPY(destination, source, item_count); 151 memcpy(destination, source, item_count);
152 return; 152 return;
153 153
154 /* 154 /*
@@ -364,12 +364,11 @@ acpi_rs_get_resource_source(acpi_rs_length resource_length,
364 * Zero the entire area of the buffer. 364 * Zero the entire area of the buffer.
365 */ 365 */
366 total_length = 366 total_length =
367 (u32) 367 (u32)strlen(ACPI_CAST_PTR(char, &aml_resource_source[1])) +
368 ACPI_STRLEN(ACPI_CAST_PTR(char, &aml_resource_source[1])) +
369 1; 368 1;
370 total_length = (u32) ACPI_ROUND_UP_TO_NATIVE_WORD(total_length); 369 total_length = (u32)ACPI_ROUND_UP_TO_NATIVE_WORD(total_length);
371 370
372 ACPI_MEMSET(resource_source->string_ptr, 0, total_length); 371 memset(resource_source->string_ptr, 0, total_length);
373 372
374 /* Copy the resource_source string to the destination */ 373 /* Copy the resource_source string to the destination */
375 374
@@ -432,8 +431,8 @@ acpi_rs_set_resource_source(union aml_resource * aml,
432 431
433 /* Copy the resource_source string */ 432 /* Copy the resource_source string */
434 433
435 ACPI_STRCPY(ACPI_CAST_PTR(char, &aml_resource_source[1]), 434 strcpy(ACPI_CAST_PTR(char, &aml_resource_source[1]),
436 resource_source->string_ptr); 435 resource_source->string_ptr);
437 436
438 /* 437 /*
439 * Add the length of the string (+ 1 for null terminator) to the 438 * Add the length of the string (+ 1 for null terminator) to the