]> Git Repo - J-linux.git/commitdiff
ACPI: Remove redundant clearing of context->ret.pointer from acpi_run_osc()
authorHans de Goede <[email protected]>
Wed, 9 Jun 2021 17:51:30 +0000 (19:51 +0200)
committerRafael J. Wysocki <[email protected]>
Thu, 10 Jun 2021 13:10:16 +0000 (15:10 +0200)
context->ret.pointer already gets set to NULL at the beginning of
acpi_run_osc() and it only gets assigned a new value in the success
path near the end of acpi_run_osc(), so the clearing of
context->ret.pointer (when status != AE_OK) at the end of
acpi_run_osc() is redundant since it will always already be NULL when
status != AE_OK.

Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/acpi/bus.c

index be7da23fad76f4a17f69ad12a039015b38fc92e3..1a4cff4bec52acc654b56b73e34fdd3fc07e9df2 100644 (file)
@@ -262,8 +262,6 @@ out_success:
 
 out_kfree:
        kfree(output.pointer);
-       if (status != AE_OK)
-               context->ret.pointer = NULL;
        return status;
 }
 EXPORT_SYMBOL(acpi_run_osc);
This page took 0.058087 seconds and 4 git commands to generate.