ACPICA: Remove extraneous check for null walk_state
[cascardo/linux.git] / drivers / acpi / acpica / dsmethod.c
index ea2bdde..cb53c44 100644 (file)
@@ -582,9 +582,7 @@ cleanup:
        /* On error, we must terminate the method properly */
 
        acpi_ds_terminate_control_method(obj_desc, next_walk_state);
-       if (next_walk_state) {
-               acpi_ds_delete_walk_state(next_walk_state);
-       }
+       acpi_ds_delete_walk_state(next_walk_state);
 
        return_ACPI_STATUS(status);
 }