From patchwork Sat Mar 25 22:19:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 74357 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp404453vqo; Thu, 23 Mar 2023 23:10:52 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6//nL5nuBuHbub30auCxQAsN6/xV+2YWVxnKi2vmungpf0FVXvr2lO4e1GXKZ3nTSfg01 X-Received: by 2002:aa7:c950:0:b0:500:2c4f:3f5 with SMTP id h16-20020aa7c950000000b005002c4f03f5mr1456753edt.12.1679638251988; Thu, 23 Mar 2023 23:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679638251; cv=none; d=google.com; s=arc-20160816; b=hJ/o7uhEFDZFZsEOsPdVDl5nmRzfr30IQCHHI5x0ilHhWSARN9IVLe7PWAFF8wYJke BKC0rAPxE5XbnWXQDJ3ZUvPwrqYlsz0LLKVkqjjPTYVHuoBi8RbQYLDrFzNcjhU381st svuDvTcAaOwcoKLTzjbW2Jx4CgZzk3GtjTn8rYI2IatrQlGJrZkoNRr0a7gLmCN0aauo lLPG3INizkZrXMaQFkK+IvYO6nLTOZ0zaCq8mPLv/0V70luDa7O1Mo8K8z1WXjPFIF6H n+J6vsnUy23WowbiuFghidWM4FBGNaKTZakw7xGdpGOusP88bBveRktKVHiJk5eMuStE atwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=+LG7FpsSOC+gbnTgOzb6iGtvmJmZfC6JoHZXHjNoWPc=; b=KmzQ3J/YYWzoI1bzwpzuDNCOx/3Jj3/3TUD1MybZAOtPfTfrCNNgWSSb+nseLrAU/9 oUxj3lIS5EuwdHD2u9bIz7g6+jhDVUJwPASRO4q4TImz7ak3Pi7lR+mFKAf77SdwiO+m Zc5xicqzxa4WDtyIolTACBDyrVLA8kxJcfs6pkJa/nAd4chavqzgdGjyhqxTbflmiSwQ Tlzn1k4Tjx24cVd6co3nsZwt2exoAT54erNSC4bXjHl0gOnbaRlkl/+oOJHA03kAuZM+ nPiAZC/57wbrpmSyIFTaBHX6PHTIL2bPmHvsKiwcirJP+iXLSPUZb8e5zYWC+WKn593Z 0wwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e21-20020a50fb95000000b004fb3426ea95si20958232edq.322.2023.03.23.23.10.28; Thu, 23 Mar 2023 23:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231307AbjCXFsV (ORCPT + 99 others); Fri, 24 Mar 2023 01:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbjCXFsT (ORCPT ); Fri, 24 Mar 2023 01:48:19 -0400 Received: from mail.nfschina.com (unknown [42.101.60.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F396AC65B; Thu, 23 Mar 2023 22:48:17 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id BD26B1A00993; Fri, 24 Mar 2023 13:48:21 +0800 (CST) X-Virus-Scanned: amavisd-new at nfschina.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 0jiyeAf8B0HH; Fri, 24 Mar 2023 13:48:21 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id B64651A00931; Fri, 24 Mar 2023 13:48:20 +0800 (CST) From: Li zeming To: rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, gregkh@linuxfoundation.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] base: power: main: remove unnecessary (void*) conversions Date: Sun, 26 Mar 2023 06:19:35 +0800 Message-Id: <20230325221935.3943-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=3.8 required=5.0 tests=DATE_IN_FUTURE_24_48, RCVD_IN_VALIDITY_RPBL,RDNS_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761228359625005428?= X-GMAIL-MSGID: =?utf-8?q?1761228359625005428?= Pointer variables of void * type do not require type cast. Signed-off-by: Li zeming --- drivers/base/power/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index c50139207794..f85f3515c258 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -679,7 +679,7 @@ static bool dpm_async_fn(struct device *dev, async_func_t func) static void async_resume_noirq(void *data, async_cookie_t cookie) { - struct device *dev = (struct device *)data; + struct device *dev = data; int error; error = device_resume_noirq(dev, pm_transition, true); @@ -816,7 +816,7 @@ static int device_resume_early(struct device *dev, pm_message_t state, bool asyn static void async_resume_early(void *data, async_cookie_t cookie) { - struct device *dev = (struct device *)data; + struct device *dev = data; int error; error = device_resume_early(dev, pm_transition, true); @@ -980,7 +980,7 @@ static int device_resume(struct device *dev, pm_message_t state, bool async) static void async_resume(void *data, async_cookie_t cookie) { - struct device *dev = (struct device *)data; + struct device *dev = data; int error; error = device_resume(dev, pm_transition, true); @@ -1269,7 +1269,7 @@ static int __device_suspend_noirq(struct device *dev, pm_message_t state, bool a static void async_suspend_noirq(void *data, async_cookie_t cookie) { - struct device *dev = (struct device *)data; + struct device *dev = data; int error; error = __device_suspend_noirq(dev, pm_transition, true); @@ -1450,7 +1450,7 @@ static int __device_suspend_late(struct device *dev, pm_message_t state, bool as static void async_suspend_late(void *data, async_cookie_t cookie) { - struct device *dev = (struct device *)data; + struct device *dev = data; int error; error = __device_suspend_late(dev, pm_transition, true); @@ -1727,7 +1727,7 @@ static int __device_suspend(struct device *dev, pm_message_t state, bool async) static void async_suspend(void *data, async_cookie_t cookie) { - struct device *dev = (struct device *)data; + struct device *dev = data; int error; error = __device_suspend(dev, pm_transition, true);