diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 09:43:07 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:06:47 +0000 |
commit | 9df60d36b2637c500030e7c9cef620002f7f47bf (patch) | |
tree | ee8b6e961747141ca37db831680fb3f371e4782a /src/vendorcode/google/chromeos | |
parent | 42efd7f593c9d270ff330d1282d9c569d1ec709a (diff) |
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>
Diffstat (limited to 'src/vendorcode/google/chromeos')
-rw-r--r-- | src/vendorcode/google/chromeos/acpi/amac.asl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vendorcode/google/chromeos/acpi/amac.asl b/src/vendorcode/google/chromeos/acpi/amac.asl index 18b9f28382..e6f10aef0b 100644 --- a/src/vendorcode/google/chromeos/acpi/amac.asl +++ b/src/vendorcode/google/chromeos/acpi/amac.asl @@ -29,22 +29,22 @@ Scope (\_SB) /* 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 @@ Scope (\_SB) For (Local3 = 2, Local3 < 17, Local3 += 3) { If (ToString (DerefOf (Local1[Local3])) != ":") { Printf ("Invalid MAC address byte %o", Local3) - Return (Zero) + Return (0) } } |