ACPICA: Remove ACPI_GET_OBJECT_TYPE macro
Remove all instances of this obsolete macro, since it is now a simple reference to ->common.type. There were about 150 invocations of the macro across 41 files. ACPICA BZ 755. http://www.acpica.org/bugzilla/show_bug.cgi?id=755 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
这个提交包含在:
@@ -557,9 +557,9 @@ acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object,
|
||||
table_index++) {
|
||||
if (*sub_object_list && /* Null object allowed */
|
||||
((ACPI_TYPE_STRING ==
|
||||
ACPI_GET_OBJECT_TYPE(*sub_object_list)) ||
|
||||
(*sub_object_list)->common.type) ||
|
||||
((ACPI_TYPE_LOCAL_REFERENCE ==
|
||||
ACPI_GET_OBJECT_TYPE(*sub_object_list)) &&
|
||||
(*sub_object_list)->common.type) &&
|
||||
((*sub_object_list)->reference.class ==
|
||||
ACPI_REFCLASS_NAME)))) {
|
||||
name_found = TRUE;
|
||||
@@ -575,8 +575,7 @@ acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object,
|
||||
/* Was a String type found? */
|
||||
|
||||
if (name_found) {
|
||||
if (ACPI_GET_OBJECT_TYPE(*sub_object_list) ==
|
||||
ACPI_TYPE_STRING) {
|
||||
if ((*sub_object_list)->common.type == ACPI_TYPE_STRING) {
|
||||
/*
|
||||
* The length String.Length field does not include the
|
||||
* terminating NULL, add 1
|
||||
|
在新工单中引用
屏蔽一个用户