From d724817235abfea4d1628dfcc23d05cad5a87419 Mon Sep 17 00:00:00 2001 From: njl Date: Wed, 12 Jan 2005 00:52:40 +0000 Subject: Fix handling of the implicit return case for methods called from an external source (i.e., _STA). The previous case only handled calls occurring within AML. This should fix Toshibas, among others. Thanks to Robert Moore of Intel for the fix. MFC after: 2 days --- sys/contrib/dev/acpica/dsutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/contrib/dev/acpica/dsutils.c') diff --git a/sys/contrib/dev/acpica/dsutils.c b/sys/contrib/dev/acpica/dsutils.c index f20fb39..13976b7 100644 --- a/sys/contrib/dev/acpica/dsutils.c +++ b/sys/contrib/dev/acpica/dsutils.c @@ -167,7 +167,8 @@ AcpiDsIsResultUsed ( * An executing method typically has no parent, since each method * is parsed separately. */ - if (!Op->Common.Parent) + if (!Op->Common.Parent || + Op->Common.Parent->Common.AmlOpcode == AML_SCOPE_OP) { /* * If this is the last statement in the method, we know it is not a -- cgit v1.1