ACPICA: Rename nameseg compare macro for clarity
ACPICA commit 92ec0935f27e217dff0b176fca02c2ec3d782bb5 ACPI_COMPARE_NAME changed to ACPI_COMPARE_NAMESEG This clarifies (1) this is a compare on 4-byte namesegs, not a generic compare. Improves understanding of the code. Link: https://github.com/acpica/acpica/commit/92ec0935 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

szülő
a3ce7a8e0d
commit
5599fb6935
@@ -276,7 +276,7 @@ static unsigned long get_acpi_srat_table(void)
|
||||
if (acpi_table) {
|
||||
header = (struct acpi_table_header *)acpi_table;
|
||||
|
||||
if (ACPI_COMPARE_NAME(header->signature, ACPI_SIG_SRAT))
|
||||
if (ACPI_COMPARE_NAMESEG(header->signature, ACPI_SIG_SRAT))
|
||||
return acpi_table;
|
||||
}
|
||||
entry += size;
|
||||
|
Reference in New Issue
Block a user