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>
This commit is contained in:
Felix Singer
2022-12-26 09:43:07 +01:00
parent 42efd7f593
commit 9df60d36b2
40 changed files with 106 additions and 106 deletions

View File

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