diff options
| -rw-r--r-- | drivers/acpi/acpica/exstorob.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/exstorob.c b/drivers/acpi/acpica/exstorob.c index 67340cc70142..257706e7734f 100644 --- a/drivers/acpi/acpica/exstorob.c +++ b/drivers/acpi/acpica/exstorob.c | |||
| @@ -70,6 +70,12 @@ acpi_ex_store_buffer_to_buffer(union acpi_operand_object *source_desc, | |||
| 70 | 70 | ||
| 71 | ACPI_FUNCTION_TRACE_PTR(ex_store_buffer_to_buffer, source_desc); | 71 | ACPI_FUNCTION_TRACE_PTR(ex_store_buffer_to_buffer, source_desc); |
| 72 | 72 | ||
| 73 | /* If Source and Target are the same, just return */ | ||
| 74 | |||
| 75 | if (source_desc == target_desc) { | ||
| 76 | return_ACPI_STATUS(AE_OK); | ||
| 77 | } | ||
| 78 | |||
| 73 | /* We know that source_desc is a buffer by now */ | 79 | /* We know that source_desc is a buffer by now */ |
| 74 | 80 | ||
| 75 | buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); | 81 | buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); |
| @@ -161,6 +167,12 @@ acpi_ex_store_string_to_string(union acpi_operand_object *source_desc, | |||
| 161 | 167 | ||
| 162 | ACPI_FUNCTION_TRACE_PTR(ex_store_string_to_string, source_desc); | 168 | ACPI_FUNCTION_TRACE_PTR(ex_store_string_to_string, source_desc); |
| 163 | 169 | ||
| 170 | /* If Source and Target are the same, just return */ | ||
| 171 | |||
| 172 | if (source_desc == target_desc) { | ||
| 173 | return_ACPI_STATUS(AE_OK); | ||
| 174 | } | ||
| 175 | |||
| 164 | /* We know that source_desc is a string by now */ | 176 | /* We know that source_desc is a string by now */ |
| 165 | 177 | ||
| 166 | buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); | 178 | buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); |
