ACPICA: add comments, no functional change
authorBob Moore <robert.moore@intel.com>
Thu, 13 Dec 2018 20:30:28 +0000 (12:30 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 13 Dec 2018 21:40:51 +0000 (22:40 +0100)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exoparg2.c

index d5b3efd35a5be4898f147759f31024b36dd9f55a..3a477566ba1b309b7de90dbedc824d335b140a7c 100644 (file)
@@ -287,9 +287,9 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state)
                 * NOTE: A length of zero is ok, and will create a zero-length, null
                 *       terminated string.
                 */
-               while ((length < operand[0]->buffer.length) &&
-                      (length < operand[1]->integer.value) &&
-                      (operand[0]->buffer.pointer[length])) {
+               while ((length < operand[0]->buffer.length) &&  /* Length of input buffer */
+                      (length < operand[1]->integer.value) &&  /* Length operand */
+                      (operand[0]->buffer.pointer[length])) {  /* Null terminator */
                        length++;
                }