]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/acpi/executer/exoparg3.c
[ACPI] ACPICA 20051216
[mirror_ubuntu-zesty-kernel.git] / drivers / acpi / executer / exoparg3.c
index 483365777670d00a2100ac81de158167e7fe13b4..2ea1c322970b2cd4457e419a1373ff3a8a693d7e 100644 (file)
@@ -223,8 +223,8 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state)
                        goto cleanup;
                }
 
-               if (length > 0) {
-                       /* Copy the portion requested */
+               if (buffer) {
+                       /* We have a buffer, copy the portion requested */
 
                        ACPI_MEMCPY(buffer, operand[0]->string.pointer + index,
                                    length);