summaryrefslogtreecommitdiff
path: root/source/compiler/aslxref.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-01-19 19:46:15 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-01-19 19:46:15 +0000
commita0b3a9cf1fc8fe1d9f95e69cdf8914bb6ebcee03 (patch)
tree9a4c1adfb3b461e73df26093e34a24a1836bae3b /source/compiler/aslxref.c
parentf2e6c39316f68b7ccc7abb766f82ed421c8e22b4 (diff)
Notes
Diffstat (limited to 'source/compiler/aslxref.c')
-rw-r--r--source/compiler/aslxref.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/source/compiler/aslxref.c b/source/compiler/aslxref.c
index b8c7835bb6dc..82c281789e7d 100644
--- a/source/compiler/aslxref.c
+++ b/source/compiler/aslxref.c
@@ -5,7 +5,7 @@
*****************************************************************************/
/*
- * Copyright (C) 2000 - 2016, Intel Corp.
+ * Copyright (C) 2000 - 2017, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -490,21 +490,18 @@ XfNamespaceLocateBegin (
RegisterNumber = Op->Asl.AmlOpcode - AML_ARG0; /* 0x68 through 0x6F */
MethodArgs = Node->MethodArgs;
+ /* Mark this Arg as referenced */
+
+ MethodArgs[RegisterNumber].Flags |= ASL_ARG_REFERENCED;
+ MethodArgs[RegisterNumber].Op = Op;
+
if (Op->Asl.CompileFlags & NODE_IS_TARGET)
{
/* Arg is being initialized */
MethodArgs[RegisterNumber].Flags |= ASL_ARG_INITIALIZED;
- MethodArgs[RegisterNumber].Op = Op;
-
- return_ACPI_STATUS (AE_OK);
}
- /* Mark this Arg as referenced */
-
- MethodArgs[RegisterNumber].Flags |= ASL_ARG_REFERENCED;
- MethodArgs[RegisterNumber].Op = Op;
-
return_ACPI_STATUS (AE_OK);
}