Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Remove extraneous check for null walk_state

ACPICA commit f9fd6e8bad0f16ce2b436c5cda36ced0c2d85302

Reported by Markus Elfring.

Link: https://github.com/acpica/acpica/commit/f9fd6e8b
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Markus Elfring and committed by
Rafael J. Wysocki
dc67d0fa ec4252a6

+1 -3
+1 -3
drivers/acpi/acpica/dsmethod.c
··· 582 582 /* On error, we must terminate the method properly */ 583 583 584 584 acpi_ds_terminate_control_method(obj_desc, next_walk_state); 585 - if (next_walk_state) { 586 - acpi_ds_delete_walk_state(next_walk_state); 587 - } 585 + acpi_ds_delete_walk_state(next_walk_state); 588 586 589 587 return_ACPI_STATUS(status); 590 588 }