From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E7A6C433B4 for ; Wed, 12 May 2021 05:36:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 125D0610EA for ; Wed, 12 May 2021 05:36:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbhELFhy (ORCPT ); Wed, 12 May 2021 01:37:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbhELFhx (ORCPT ); Wed, 12 May 2021 01:37:53 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B10AC061574 for ; Tue, 11 May 2021 22:36:46 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id q2so17662729pfh.13 for ; Tue, 11 May 2021 22:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ifo9croMydmJDq8tVTBmjMUam90Lc+s7rOdOzubXklE=; b=agHLsJAoym4mAxL5ZbgKFvYlFEOR4OOQAOYhJ5XL6zGFdXJTNW4ILyNtIcpp9yBgWu WGiFqBgjT8jdwWMZEEBeaCuxu3R9F6JWpU5mTBExX2j8kfB6AE+viouqAsO+RaLKOja2 aWMHOrhc3nlqUO/fB8z+BAMqBkXNeQ8TMjUP1rPfYwO3iJxQcwGHpuSEjRoVkWbL0hZ5 ED7JTdff4rrrkT4GaOq/oAtxwhrZnduoyKXKextYZlUE3OfryuNdWAEqB77tz6ppExO9 z0X9ADhSj6j1JxyAJBcryBF1+7fbqoS/I3hgAi1UyrDTQGtLFGPeSJFFEDd+d4qN4C5O veVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ifo9croMydmJDq8tVTBmjMUam90Lc+s7rOdOzubXklE=; b=iC531mSKF6vPDUtobCS1RY7mO4pcK3p4Dl8sQncuuxQjlaONpdzSG5uo2USRFCg6T3 r4kamL4cRvAzL//3DNYQUU/Dwm5LQ5hT55N6DxTf2SzHu4QKFNlWaIzZ+oEz2moKddck XWBn/G+UWWYiH7wVG8uYECONZP4qAcYWPv1Zt2QXDxdNHspUuNlcqKymyc255CKxtFuj 1zb/yyVt/F2XGZ3iiLps2j20pYKRksnbiRYA8kUu13A9nirmwZ6J4mloyrgguHf+Vk4o yJTlLiYtGf1Ovd/o/flglHR29RSCoWo3z0cM7eXNbB2sAs2d3xEGiHIAovr3XEdx3i/s dpJg== X-Gm-Message-State: AOAM5323qvE5La+LtyI7CVrOiTceX+7Z520JuagaHsfvCa1HbatEkZWg 8utRpXSmKVEHQz5u7ztvQzkoWA== X-Google-Smtp-Source: ABdhPJxG5HFk1BVt87iNZIgnUiokph6k9IgeqiusOSQfY+cfYd6jn7ckZgLDJf5/yFz2AyFt27T+0w== X-Received: by 2002:a63:eb47:: with SMTP id b7mr7593796pgk.227.1620797805698; Tue, 11 May 2021 22:36:45 -0700 (PDT) Received: from localhost ([136.185.154.93]) by smtp.gmail.com with ESMTPSA id m2sm14853917pgv.87.2021.05.11.22.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 22:36:44 -0700 (PDT) Date: Wed, 12 May 2021 11:06:42 +0530 From: Viresh Kumar To: Yang Yingliang Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rjw@rjwysocki.net Subject: Re: [PATCH -next] cpufreq: cppc: Remove unnecessary INIT_LIST_HEAD() Message-ID: <20210512053642.74so7tkzsjbthybf@vireshk-i7> References: <20210511114703.3790524-1-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210511114703.3790524-1-yangyingliang@huawei.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-05-21, 19:47, Yang Yingliang wrote: > The list_head cpu_data_list is initialized statically. > It is unnecessary to initialize by INIT_LIST_HEAD(). > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > drivers/cpufreq/cppc_cpufreq.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c > index 3848b4c222e1..b312fa210a39 100644 > --- a/drivers/cpufreq/cppc_cpufreq.c > +++ b/drivers/cpufreq/cppc_cpufreq.c > @@ -723,8 +723,6 @@ static int __init cppc_cpufreq_init(void) > if ((acpi_disabled) || !acpi_cpc_valid()) > return -ENODEV; > > - INIT_LIST_HEAD(&cpu_data_list); > - > cppc_check_hisi_workaround(); > > ret = cpufreq_register_driver(&cppc_cpufreq_driver); Acked-by: Viresh Kumar -- viresh