tree/acpi: Replace constant "Zero" with actual number
Change-Id: I5a3e3506415f424bf0fdd48fc449520a76622af5
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71525
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/vendorcode/google/chromeos/acpi/amac.asl b/src/vendorcode/google/chromeos/acpi/amac.asl
index 18b9f28..e6f10ae 100644
--- a/src/vendorcode/google/chromeos/acpi/amac.asl
+++ b/src/vendorcode/google/chromeos/acpi/amac.asl
@@ -29,22 +29,22 @@
/* Get "dock_passthrough" value from RW_VPD */
Local0 = \VPD.VPDF ("RW", "dock_passthrough")
- Local1 = Zero
+ Local1 = 0
Switch (ToString (Local0))
{
Case ("ethernet_mac0") {
Local1 = \VPD.VPDF ("RO", "ethernet_mac0")
}
Case ("builtin") {
- Return (Zero)
+ Return (0)
}
/* "dock_mac" or policy not found. */
Default {
Local1 = \VPD.VPDF ("RO", "dock_mac")
}
}
- If (Local1 == Zero) {
- Return (Zero)
+ If (Local1 == 0) {
+ Return (0)
}
Printf ("MAC address returned from VPD: %o", Local1)
@@ -52,7 +52,7 @@
For (Local3 = 2, Local3 < 17, Local3 += 3) {
If (ToString (DerefOf (Local1[Local3])) != ":") {
Printf ("Invalid MAC address byte %o", Local3)
- Return (Zero)
+ Return (0)
}
}