From 10f7f5044ec8364419a2722b2822db3d9d94a7ed Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 8 Dec 2015 15:26:03 -0700 Subject: ACPI: Fix IASL Warning about unused method for GBUF check According to the ACPI Spec for CondRefOf, the result argument is optional. In all of these locations, it was getting set but not used, creating a warning in new versions of IASL. Since it's an optional argument, just remove it. dsdt.aml 640: If (CondRefOf (^GBUF, Local0)) { Warning 3144 - Method Local is set but never used ^ (Local0) Change-Id: Ie2f46808e92c309a63ba7661bcbd77402a08366a Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/12694 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/soc/intel/baytrail/acpi/lpe.asl | 2 +- src/soc/intel/braswell/acpi/lpe.asl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/baytrail/acpi/lpe.asl b/src/soc/intel/baytrail/acpi/lpe.asl index a8ebc3532d..1f13fe56e9 100644 --- a/src/soc/intel/baytrail/acpi/lpe.asl +++ b/src/soc/intel/baytrail/acpi/lpe.asl @@ -68,7 +68,7 @@ Device (LPEA) Store (\LPFW, BAS2) /* Append any Mainboard defined GPIOs */ - If (CondRefOf (^GBUF, Local0)) { + If (CondRefOf (^GBUF)) { ConcatenateResTemplate (^RBUF, ^GBUF, Local1) Return (Local1) } diff --git a/src/soc/intel/braswell/acpi/lpe.asl b/src/soc/intel/braswell/acpi/lpe.asl index b213fe6248..6dd73ab2e1 100644 --- a/src/soc/intel/braswell/acpi/lpe.asl +++ b/src/soc/intel/braswell/acpi/lpe.asl @@ -68,7 +68,7 @@ Device (LPEA) Store (\LPFW, BAS2) /* Append any Mainboard defined GPIOs */ - If (CondRefOf (^GBUF, Local0)) { + If (CondRefOf (^GBUF)) { ConcatenateResTemplate (^RBUF, ^GBUF, Local1) Return (Local1) } -- cgit v1.2.3