summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpi/dsdt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index 8d7c6a5ce14..d60526f2244 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.c,v 1.94 2007/11/03 19:06:07 canacar Exp $ */
+/* $OpenBSD: dsdt.c,v 1.95 2007/11/03 19:17:47 canacar Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -3155,8 +3155,7 @@ aml_parsestring(struct aml_scope *scope, int opcode, struct aml_value *res)
memcpy(&tmpval[AML_LHS].v_buffer+tmpval[AML_LHS].length,
tmpval[AML_RHS].v_buffer, tmpval[AML_RHS].length);
aml_setvalue(scope, &tmpval[AML_DST], &tmpval[AML_LHS], 0);
- }
- if (tmpval[AML_LHS].type == AML_OBJTYPE_STRING &&
+ } else if (tmpval[AML_LHS].type == AML_OBJTYPE_STRING &&
tmpval[AML_RHS].type == AML_OBJTYPE_STRING) {
aml_resize(&tmpval[AML_LHS],
tmpval[AML_LHS].length+tmpval[AML_RHS].length);