arch/x86/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax

Replace `LNotEqual(a, b)` with `a != b`.

Change-Id: If0e9fcea680d487c28a965e944b3333bb5a07026
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60696
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer 2022-01-02 02:42:21 +01:00
parent 7ee6b5a3a5
commit b4a7f74436
1 changed files with 2 additions and 3 deletions

View File

@ -78,8 +78,7 @@ Method(WCMP, 2)
Store(SLEN(Arg1), Local3)
While(Local2 < Local3) {
if (LNotEqual(Derefof(Local0[Local2]),
Derefof(Local1[Local2]))) {
if (Derefof(Local0[Local2]) != Derefof(Local1[Local2])) {
Return(0)
}
Local2++
@ -93,7 +92,7 @@ Method(WCMP, 2)
Method(I2BM, 1)
{
Store(0, Local0)
if (LNotEqual(ARG0, 0)) {
if (ARG0 != 0) {
Store(1, Local1)
Local0 = Local1 << ARG0
}