Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp717134rwl; Fri, 7 Apr 2023 04:30:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4pdac3BrU7KLa7gBtXW5CD4MbAM8GeqicoY6ffRGrKl0Cwmiq2FYOPxOt/656dYoWpsrr X-Received: by 2002:a50:ee99:0:b0:4fa:ba31:6c66 with SMTP id f25-20020a50ee99000000b004faba316c66mr2535718edr.42.1680867028872; Fri, 07 Apr 2023 04:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680867028; cv=none; d=google.com; s=arc-20160816; b=DW8o+et1fiOw2+0lunq9NVdLCjQJ6I/B/sKi2fJE85J7uk8LcaTHGUJBbAhNyfNv82 l3QCtnR3uoUsIW6XcH2g1NwGfRLT43r2HAouMTsbNSi4V+s2ZP6tUCV3XyofbXFXagwg PETvsIS0dWjLQPHXQDaO6wcET9iWoyd6Y4GZ1vuroXPJaFqEzo0OlVD37m32SPtpqQkA s+LZyGF/prLmUx/fCxoOiNedpxoLKHAcupvq6aLGS/ZnT/yIqAeWF86GVswZgL9Nj3yV HHoWNszcKNzLp7gEYxgaBSRwxaur1+7CyfvlTSuIYoESgWFXoOLXjluNopMBGzueo9ya 7wug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=8lAhh6OTgEOCQDCsqRUmsEh6LrwA4NClMXV6hOv4Y6w=; b=kD2GIY3EZLezhAPPgAXEz6IfBkfScZLbHmrLxcG7oizjjhQ1ASOsMKMQhuxtD6LDob 5XwiToc89eTL5W5858dYNe3AhfFAx1wwG1M/bTDxtf9c+MWjDWAhxQjsRjytDmwx5LxZ 6Bc19z82glsdLMa0ppdZvegFwu9uwI6zZAsAY4E2m/xczQexLnnnLHdxRcquPeiS52C6 M3I7sGyE3mti8lNsdgN0B1jwJ05+GV4pw7Qocbh6MkrqZLcHt7h37qgb2RM+qzJNS5Kn nJ/2u/dudxJ9iIuwPus3HLzavTUNNeXk5PjFap4TWADgT5v+YKqOpROpW72kR86ON/rt +7XQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a50eac3000000b00501e60780absi3311095edp.600.2023.04.07.04.30.02; Fri, 07 Apr 2023 04:30:28 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239421AbjDGL3N convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Apr 2023 07:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232228AbjDGL3K (ORCPT ); Fri, 7 Apr 2023 07:29:10 -0400 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA93A5E8; Fri, 7 Apr 2023 04:28:49 -0700 (PDT) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5047074939fso4297781a12.1; Fri, 07 Apr 2023 04:28:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680866917; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=877eU4ZABdImKgz+6f+4rhLkh0VZx+uXGk1JZRJ2xMM=; b=Nh4LFBvowsfH27oCrGaml5BCCavOJR+xTC3vTCWR//2xDoD//qmxO9a4XqVSTVFWqt g/dl+V3TAkIa+EJMba8WT5MiwaH+TmAeCAriK9Pxrqq9Gy5txDPxmIcXxlMUwFAvJHjM VVGahWQB7nWPU6/RaMdxoMKA+s8oO4jve/cQ/L5TaLet7p30XrlFmPJIkYg6e9DqhTcv nYKR4sD4foooNnCRN9OzCY4yDf+PFDfqifwttKTyEGS0LiZYio828LVowP7yDc3HFba+ rdPUVnav4zRf4SqVVGGbRTb4kbuNLP8K3Opef0p8N1vrkDupYrSaJ9AkKgvFXFKJWYOU qYsw== X-Gm-Message-State: AAQBX9dywZtrBrb2wZfs5wWn53xy4lFAeO8v1lKsrB3dNDsTmxAqRzXn lW1MGe8bMPuk3Ug2byAS7XuRG995F4+Gw0lZVfM= X-Received: by 2002:a50:cd02:0:b0:4fa:71a2:982b with SMTP id z2-20020a50cd02000000b004fa71a2982bmr853718edi.0.1680866916681; Fri, 07 Apr 2023 04:28:36 -0700 (PDT) MIME-Version: 1.0 References: <20230325221935.3943-1-zeming@nfschina.com> In-Reply-To: <20230325221935.3943-1-zeming@nfschina.com> From: "Rafael J. Wysocki" Date: Fri, 7 Apr 2023 13:28:25 +0200 Message-ID: Subject: Re: [PATCH] base: power: main: remove unnecessary (void*) conversions To: Li zeming Cc: rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, gregkh@linuxfoundation.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 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 On Fri, Mar 24, 2023 at 6:48 AM Li zeming wrote: > > 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); > -- Applied as 6.4 material with some edits in the subject and changelog, thanks!