aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nspredef.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
-rw-r--r--drivers/acpi/acpica/nspredef.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c
index b05f42903c86..1782c3d85ba2 100644
--- a/drivers/acpi/acpica/nspredef.c
+++ b/drivers/acpi/acpica/nspredef.c
@@ -222,23 +222,21 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
222 status = acpi_ns_check_object_type(data, return_object_ptr, 222 status = acpi_ns_check_object_type(data, return_object_ptr,
223 predefined->info.expected_btypes, 223 predefined->info.expected_btypes,
224 ACPI_NOT_PACKAGE_ELEMENT); 224 ACPI_NOT_PACKAGE_ELEMENT);
225 if (ACPI_FAILURE(status)) { 225 if (ACPI_SUCCESS(status)) {
226 goto check_validation_status;
227 }
228 226
229 /* For returned Package objects, check the type of all sub-objects */ 227 /* For returned Package objects, check the type of all sub-objects */
230 228
231 if (return_object->common.type == ACPI_TYPE_PACKAGE) { 229 if (return_object->common.type == ACPI_TYPE_PACKAGE) {
232 status = acpi_ns_check_package(data, return_object_ptr); 230 status = acpi_ns_check_package(data, return_object_ptr);
231 }
233 } 232 }
234 233
235 /* 234 /*
236 * Perform additional, more complicated repairs on a per-name 235 * Perform additional, more complicated repairs on a per-name
237 * basis. 236 * basis. Do this regardless of the status from above.
238 */ 237 */
239 status = acpi_ns_complex_repairs(data, node, status, return_object_ptr); 238 status = acpi_ns_complex_repairs(data, node, status, return_object_ptr);
240 239
241check_validation_status:
242 /* 240 /*
243 * If the object validation failed or if we successfully repaired one 241 * If the object validation failed or if we successfully repaired one
244 * or more objects, mark the parent node to suppress further warning 242 * or more objects, mark the parent node to suppress further warning