From patchwork Tue Jan 26 12:45:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 370625 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4947814jam; Tue, 26 Jan 2021 04:55:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3sUrCaboZ5DQUx5OhQaCVYu/eB2klAtjudikh9KeZ2aGLSweD6mqIiHPBXz5l2V4eXKi+ X-Received: by 2002:a50:b223:: with SMTP id o32mr4490553edd.79.1611665719455; Tue, 26 Jan 2021 04:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611665719; cv=none; d=google.com; s=arc-20160816; b=mW5CaGLpD32uV+8RiGtUVfVYnVWNceRK1rlbKSEGOuNzany6nVhMnzHqm8mLAPuvXd Kh1U+gTLNWjHtDdHHeVxvZvPvcjaobg6owLdvrOdOx8aJvDuiJMp3we9bykqpnmIbK3U 1K98HmLGWpKfY2Pxxd7qrtxFc3cU/34OGT/dajj26ZucR71ADA+NcqpZ2PcOwVd+2tIJ 2vY/VrFmYp2wm9z+TI1OY973BZ/UyLmbSuUj+wdHdeAT20f+SN7zBY0d1qK1wLIN7/pF uCcQ8vIA983YyIHcoCokaOyou98ceE2X9WG8+IFmnXzcWiHUXgWqP81g5O2Q+UMM3oqQ r9Rw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4mll2lpwENE608kX1kOhep+FnuspDxHBBTIWjYWHVv4=; b=nu09+I8PDEjWmT4J88yqDPLt2Bn5VYOjyHgXbhVbRoKaPAIHf7ZJyMvNVwqLhqWZQW JIfNNcCKckvbQg7Q1PJjDIWWpim+NjsllBHNRyWAFwYsTt5dbhOC5r4V5DGZ2tZCq/Pg dQXpw0jFNVCIzPO7xumN3rTQ1YgeCQeLe9bkYAd/l5+r9t+e1dD8cOLlUkx62cvpS3K2 XOdpQqlb/TgxxrNX5SIptUV0dyN3YkriSuPkk0MdhBUXxoxzBYiJSD4Im937kbo0Z2Tu N/0kp1R/IAHMSpJexaBzsp0TAXq79tORkEgKQVneTKuaiiUrCEvMRTEhv8ifNeqyAxBC v4VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pN4lfLmm; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg3si6660094ejc.744.2021.01.26.04.55.19; Tue, 26 Jan 2021 04:55:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pN4lfLmm; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404030AbhAZMtY (ORCPT + 15 others); Tue, 26 Jan 2021 07:49:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391934AbhAZMsj (ORCPT ); Tue, 26 Jan 2021 07:48:39 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5B3C0698E2 for ; Tue, 26 Jan 2021 04:46:01 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id c127so2615517wmf.5 for ; Tue, 26 Jan 2021 04:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4mll2lpwENE608kX1kOhep+FnuspDxHBBTIWjYWHVv4=; b=pN4lfLmmVBgLX1q2BKk4RyuM8nfGi0iSK2p5oFzqbwR48oc2/k0GoyukN3ekRynO06 FKaAaAsWyotTSplcMwQPMAZVfJizyGQiOJBMk0yYcAymhgu9N2ZSbUSh6qjy288ou0pc HqtayVh1cyMBIbzfiBYPHmvVjr9IdO/PtWWdjNpPkVFE2CynLfawGQEBle+vluHgUEPi XIkSyDlNFtRmGLri4EMRNLpm0jF2EqbuLb6EDwAkGFdlQ5TAMlRTr4lVHYp6w+0UpvW3 IMv+nTm9wowh7LVp4WikScVxnNSItGlVg6V+ACms+OKjBP2oRnEDQeXLGZ596/KJomrY KMoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4mll2lpwENE608kX1kOhep+FnuspDxHBBTIWjYWHVv4=; b=tZnwdmqRY/Gdrnv76N/TsncVjDbTC5cw/fcL8vOWdRKiEosJ7SAjZ+/bXrTHKTdlI4 CjNx0shhQnLpopDFGN8T0OHjsdPVZ2MIlmSOLngNFiS3FD3Q7h5/o2QrWe56y8UgO9NG sV0wlhE/y4hEP5V8fQaRu5ArXEliaD+ZdYqW/Y2xfaTyiezEhg9DjtzLVFfgqOoldNnG sCGh6oy/NoEnuAyqO7/r83HkqO+/41/jBlg1ch+VQPfbCk1LUpWIjL49v0uEpsxztEQT Jf/5yrkJbHTKwLmyKDaMOh6lfyPYInZznjox2ln/W1CSetIrW6VfdeWt4F9ww+3u1+uT cX/A== X-Gm-Message-State: AOAM5302xp7wjHlXsZatpzsmntBhS/LCuRxINBVqqWcFXpFiXJZJ9UQ2 5jXcFXBVPTpnsro0cHBX79QKbeb9b3wqQAgV X-Received: by 2002:a05:600c:1911:: with SMTP id j17mr4552481wmq.63.1611665159968; Tue, 26 Jan 2021 04:45:59 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:45:59 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 13/21] clk: qcom: gcc-ipq4019: Remove unused variable 'ret' Date: Tue, 26 Jan 2021 12:45:32 +0000 Message-Id: <20210126124540.3320214-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/clk/qcom/gcc-ipq4019.c: In function ‘clk_cpu_div_set_rate’: drivers/clk/qcom/gcc-ipq4019.c:1279:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones --- drivers/clk/qcom/gcc-ipq4019.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.25.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/gcc-ipq4019.c b/drivers/clk/qcom/gcc-ipq4019.c index ef5137fd50f3f..8abad4032de71 100644 --- a/drivers/clk/qcom/gcc-ipq4019.c +++ b/drivers/clk/qcom/gcc-ipq4019.c @@ -1276,16 +1276,15 @@ static int clk_cpu_div_set_rate(struct clk_hw *hw, unsigned long rate, struct clk_fepll *pll = to_clk_fepll(hw); const struct freq_tbl *f; u32 mask; - int ret; f = qcom_find_freq(pll->freq_tbl, rate); if (!f) return -EINVAL; mask = (BIT(pll->cdiv.width) - 1) << pll->cdiv.shift; - ret = regmap_update_bits(pll->cdiv.clkr.regmap, - pll->cdiv.reg, mask, - f->pre_div << pll->cdiv.shift); + regmap_update_bits(pll->cdiv.clkr.regmap, + pll->cdiv.reg, mask, + f->pre_div << pll->cdiv.shift); /* * There is no status bit which can be checked for successful CPU * divider update operation so using delay for the same.