From patchwork Mon Dec 26 03:02:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Chuanjian X-Patchwork-Id: 636838 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9482FC4167B for ; Mon, 26 Dec 2022 03:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbiLZDGq (ORCPT ); Sun, 25 Dec 2022 22:06:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbiLZDGp (ORCPT ); Sun, 25 Dec 2022 22:06:45 -0500 X-Greylist: delayed 237 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 25 Dec 2022 19:06:44 PST Received: from mail.nfschina.com (unknown [42.101.60.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9879F2BCD for ; Sun, 25 Dec 2022 19:06:44 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 9A4E61A009CD; Mon, 26 Dec 2022 11:02:52 +0800 (CST) X-Virus-Scanned: amavisd-new at nfs.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p5522wRlnBkV; Mon, 26 Dec 2022 11:02:51 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: chuanjian@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 74DEF1A00818; Mon, 26 Dec 2022 11:02:51 +0800 (CST) From: Dong Chuanjian To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org, Dong Chuanjian Subject: [PATCH] drivers/acpi/acpica/evmisc.c : eliminate unnecessary type conversions Date: Mon, 26 Dec 2022 11:02:42 +0800 Message-Id: <20221226030242.5127-1-chuanjian@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org remove unnecessary void* type casting. Signed-off-by: Dong Chuanjian 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();