Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp129821pxj; Fri, 7 May 2021 05:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjJXryri82K5+QaNyymzXlbkqVQO7/PvhjlYc2oTA1fYA1eLXhYI7PorOUE9zFD8yl6oVI X-Received: by 2002:a05:6402:2712:: with SMTP id y18mr11489650edd.41.1620390301768; Fri, 07 May 2021 05:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620390301; cv=none; d=google.com; s=arc-20160816; b=sN0+/87PJ/mAseqalEkmbPCNmzlaxGTMN6Ni9mdXc3E2ghANj+YbYNeHMPoLR1wMGn Cf/haiv0mpxmSMIxbhEmIKg4WLktwYnfwZTBckJ+YRvZm96Tt6sRybmpov3c3HG2+F2u vb4x9zqEVmAOKoeeRNaL1mBxl7Ppp3zAfo7yhoKsWrQCOdQLs3Zw3cEcHJASl9zpfwaZ z83yIUoB3NF50SBGY+Ote6mdaTRJAVyGZ4jN23U9HCdgKuTxP5GusEk4TBZMLnpsCMJp P/Ok8DZahqYdZYsXmkb/36p8mPO/pMYSYAamoJa0X+NOhgUffJjjJj31yC25Go/hGiQD xWSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=MSknyeWG/k5PA8WLh5OB7e6pse7IRLMD10miKLhase0=; b=ieO3j40o4s4quPkKO2V4GnbrD/uMceIP7ckKVhxqyQAG5Bipx6jfK8+lhSlTKEM/Od bzKZSy9JU1XLeWiEqPssh03gN91eFElrUHXvjVDQf8AoPgrvLJ1fHEQ5X1LxdA31Ufhd qAeO33sm7w/af4q6A8Ec4a58fC5wA9mqeCYmC6gwvlqh6juKXOGp+D9tH3kxvk10reWa yPaLBPVXTnBgNopDHMlALNK9P/Slqv8uC4Q4EF9FNvhVS8e+wuOscaLCdxvUn96KyH4i HBBSbuN2U5xLjAG5f8f4HaRQcHQ3t7Loot1eTTtP23cUUQ3W/FLUW8J9BQUz9UJMFHsh IKWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si6005110ejd.203.2021.05.07.05.24.37; Fri, 07 May 2021 05:25:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236115AbhEGJ20 (ORCPT + 99 others); Fri, 7 May 2021 05:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236023AbhEGJ20 (ORCPT ); Fri, 7 May 2021 05:28:26 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 136DEC061574 for ; Fri, 7 May 2021 02:27:27 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lewlP-00023a-JO; Fri, 07 May 2021 11:27:15 +0200 Received: from mtr by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lewlN-0007ID-SU; Fri, 07 May 2021 11:27:13 +0200 Date: Fri, 7 May 2021 11:27:13 +0200 From: Michael Tretter To: Christophe JAILLET Cc: mturquette@baylibre.com, sboyd@kernel.org, michal.simek@xilinx.com, quanyang.wang@windriver.com, rajan.vaja@xilinx.com, jolly.shah@xilinx.com, tejasp@xilinx.com, shubhrajyoti.datta@xilinx.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] clk: zynqmp: pll: Remove some dead code Message-ID: <20210507092713.GM29775@pengutronix.de> References: <71a9fed5f762a71248b8ac73c0a15af82f3ce1e2.1619867987.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <71a9fed5f762a71248b8ac73c0a15af82f3ce1e2.1619867987.git.christophe.jaillet@wanadoo.fr> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:22:09 up 78 days, 12:46, 97 users, load average: 0.07, 0.08, 0.09 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mtr@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 01 May 2021 13:24:32 +0200, Christophe JAILLET wrote: > 'clk_hw_set_rate_range()' does not return any error code and 'ret' is > known to be 0 at this point, so this message can never be displayed. > > Remove it. > > Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver") > Signed-off-by: Christophe JAILLET Reviewed-by: Michael Tretter > --- > HOWEVER, the message is about 'clk_set_rate_range()', not > 'clk_hw_set_rate_range()'. So the message is maybe correct and the > 'xxx_rate_range()' function incorrect. Thanks. The function is correct, as this is a clock provider and should use the clk_hw. Removing the message is correct. Michael > --- > drivers/clk/zynqmp/pll.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/clk/zynqmp/pll.c b/drivers/clk/zynqmp/pll.c > index abe6afbf3407..af11e9400058 100644 > --- a/drivers/clk/zynqmp/pll.c > +++ b/drivers/clk/zynqmp/pll.c > @@ -331,8 +331,6 @@ struct clk_hw *zynqmp_clk_register_pll(const char *name, u32 clk_id, > } > > clk_hw_set_rate_range(hw, PS_PLL_VCO_MIN, PS_PLL_VCO_MAX); > - if (ret < 0) > - pr_err("%s:ERROR clk_set_rate_range failed %d\n", name, ret); > > return hw; > } > -- > 2.30.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >