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
This commit is contained in:
Nate Lawson 2005-01-12 00:52:40 +00:00
parent 697831d611
commit 4802655124
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor-sys/acpica/dist/; revision=140094

View file

@ -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