Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1128844pxy; Sat, 1 May 2021 04:45:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNdkrnV6ExmsvZtcwer9yXbfifGL6lFzqQgDDtpALk8Atsi6hButc75+3DeSFRQ48v6IH+ X-Received: by 2002:a63:5955:: with SMTP id j21mr9090331pgm.214.1619869553178; Sat, 01 May 2021 04:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619869553; cv=none; d=google.com; s=arc-20160816; b=oyha7j+7szjNasJzf8E2ywPSAO8v4VnlUUYMglai483O+qd6akE/6YLYFrXSlW6hdn GDaVRO8GrQlRwiTAy1pfshytet7FU4N4VNC4yDIDC8GizIm9i8oepgNRb3evv4sWm0nt 6ZSYow9rvCBfcaIT6U/Wzvk5/mlhQI4z8RTNDRkbJhFEE1BTokkNXzlOMPefTKXEokdD WfPKednRpY+PTLAeGlUA4QSvKE9CkIuKm7AKeu/SDXdZWzXc1lvj88c8OiR+gpKzofy6 vk+No0mXjP4O7SmPoBF5f3goHeXO4BlgatTy7IcATfTAdGCtM5t2CrxGhUs1Tdz8aJ8g PDkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0Hvtwxo6HvZ9HqCSgBzeWZEWc+EvaikEVsPIt/hgvK4=; b=vWVHmi6KAQbPOqJ3LBww1IpXBJS+mF1ktwHmf5fCC7Q05+S6BEsjs3B/NcJoERAHV8 OgbBsrWo1+eVbMPcitfqIrHBxFi9ZR8h6Lph5EB2jd56geV2pE23XqpdkEHQ8o17/TRd urUaW1V43mY8X/sodgWBll98XTF6uqlZUhSXWH2qAg89FanBPM/20Bgfph9/bpIDLVk1 x981arLdV/FTodVT/wOmnlR3qvoTAHLpWGLcyvTaMKZegw0xTb+xIHrRQnvfCRHVXhjx P4A0H4Auo7A9LTeXpkvdeVwBo2+J1QcW2stY4bOh7dR4vc4Pue1f0AHgC4Jy4ICWUbXY aBcQ== 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 m4si5620204pfk.61.2021.05.01.04.45.08; Sat, 01 May 2021 04:45:53 -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 S231913AbhEALZ1 (ORCPT + 99 others); Sat, 1 May 2021 07:25:27 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:48218 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231882AbhEALZ1 (ORCPT ); Sat, 1 May 2021 07:25:27 -0400 Received: from localhost.localdomain ([86.243.172.93]) by mwinf5d12 with ME id zPQZ2400621Fzsu03PQZHM; Sat, 01 May 2021 13:24:35 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 01 May 2021 13:24:35 +0200 X-ME-IP: 86.243.172.93 From: Christophe JAILLET To: 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 Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] clk: zynqmp: pll: Remove some dead code Date: Sat, 1 May 2021 13:24:32 +0200 Message-Id: <71a9fed5f762a71248b8ac73c0a15af82f3ce1e2.1619867987.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org '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 --- 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. --- 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