forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/utcopy.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: utcopy - Internal to external object translation utilities
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -916,13 +916,6 @@
916916 status = acpi_ut_walk_package_tree(source_obj, dest_obj,
917917 acpi_ut_copy_ielement_to_ielement,
918918 walk_state);
919
- if (ACPI_FAILURE(status)) {
920
-
921
- /* On failure, delete the destination package object */
922
-
923
- acpi_ut_remove_reference(dest_obj);
924
- }
925
-
926919 return_ACPI_STATUS(status);
927920 }
928921