diff mbox series

drivers/acpi/acpica/evmisc.c : eliminate unnecessary type conversions

Message ID 20221226030242.5127-1-chuanjian@nfschina.com
State New
Headers show
Series drivers/acpi/acpica/evmisc.c : eliminate unnecessary type conversions | expand

Commit Message

Dong Chuanjian Dec. 26, 2022, 3:02 a.m. UTC
remove unnecessary void* type casting.

Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>

Comments

Rafael J. Wysocki Dec. 30, 2022, 6:19 p.m. UTC | #1
On Mon, Dec 26, 2022 at 4:06 AM Dong Chuanjian <chuanjian@nfschina.com> wrote:
>
> remove unnecessary void* type casting.
>
> Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>
>
> diff --git a/drivers/acpi/acpica/evmisc.c b/drivers/acpi/acpica/evmisc.c
> index 6172cddc1b39..94d83e7dc90f 100644
> --- a/drivers/acpi/acpica/evmisc.c
> +++ b/drivers/acpi/acpica/evmisc.c
> @@ -160,7 +160,7 @@ acpi_ev_queue_notify_request(struct acpi_namespace_node *node, u32 notify_value)
>
>  static void ACPI_SYSTEM_XFACE acpi_ev_notify_dispatch(void *context)
>  {
> -       union acpi_generic_state *info = (union acpi_generic_state *)context;
> +       union acpi_generic_state *info = context;
>         union acpi_operand_object *handler_obj;
>
>         ACPI_FUNCTION_ENTRY();
> --

ACPICA changes require (at least) a pull request to be submitted to
the upstream ACPICA project on GitHub.

If such a pull request is created, please resend the Linux patch with
a Link tag pointing to that pull request.

Thanks!
diff mbox series

Patch

diff --git a/drivers/acpi/acpica/evmisc.c b/drivers/acpi/acpica/evmisc.c
index 6172cddc1b39..94d83e7dc90f 100644
--- a/drivers/acpi/acpica/evmisc.c
+++ b/drivers/acpi/acpica/evmisc.c
@@ -160,7 +160,7 @@  acpi_ev_queue_notify_request(struct acpi_namespace_node *node, u32 notify_value)
 
 static void ACPI_SYSTEM_XFACE acpi_ev_notify_dispatch(void *context)
 {
-	union acpi_generic_state *info = (union acpi_generic_state *)context;
+	union acpi_generic_state *info = context;
 	union acpi_operand_object *handler_obj;
 
 	ACPI_FUNCTION_ENTRY();