Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3790590pxb; Tue, 26 Jan 2021 05:03:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX0CddIT/8/p3X/OaQPQoPwvMstlbBWqAfVOJxGNX2H/QsGfLD2LZ7/7uDlBmvydqVz3bq X-Received: by 2002:a05:6402:3585:: with SMTP id y5mr4339713edc.97.1611666190924; Tue, 26 Jan 2021 05:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611666190; cv=none; d=google.com; s=arc-20160816; b=kZyTtxh5pY9FY2XcsSE1H/O9On8A0l45sbxFW6vsHVKqHTNMWVB+QPH18C5LFomQ+i yOO5aKTPQrMsj+CGAx3q16POfgmV1RytK7kOonXPFvcTKKxnvLe/CSPUgT4CZrQ7WWG2 vK+EoD3gS88fMCaMrGwxJ5v8P4R+bXvXq3DMTZcQGHJsG73FaIUXc0/EdFMXCyubxm6A Lz/eomUEoECJkx2cVeGL3q1Omnw8dFqzTBbCxBc0MBAuGKTUjWIZiZd2yOpDMnjQdXvO w381hGtFpbZ9gov/QHG809SLqXW8fzJr85MYRSPMWMv8FANl223VJZytaLM4mwPQXQBV sBLA== 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=nG33hgkdTs06KWmlgJEtk7rLDeSwWTzpHDmFW5VkzysHzYMsmnKDV23uGJvDoAXcrp UtA0JMRHvqhN+mestRsShw8ufvMGP90puNCSrdUlcWTdl8EQn45MNDpW6SvKA4msqhZP TaW+IbtUzFrxLT/tiJXu12OJD0jD3KO5yv6qymrLQj69WFQu8evJqYimb1esxb6VcQ74 owY31oE0kOQlSLDgZ0pQEn0vNIqt+xUPUlJ7U6bk8gWzO/ZzGap8nXX9FfcHE7n3gWnA ejZJeuCy/gKemcKaCY74cuEXWFzCy4BgRBLFby5tbUmm26u8yL8uLPqFzj2sTVlMYp6N 643Q== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 r21si7199023ejo.142.2021.01.26.05.02.45; Tue, 26 Jan 2021 05:03:10 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=pN4lfLmm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392636AbhAZNB2 (ORCPT + 99 others); Tue, 26 Jan 2021 08:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391990AbhAZMtC (ORCPT ); Tue, 26 Jan 2021 07:49:02 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BA92C0698E1 for ; Tue, 26 Jan 2021 04:46:01 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id m187so2342939wme.2 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=MXm/RPwC7OaPgHFePm0rygI6/eWqrScReiOQr2UoQ3LcaDHFi1u47MjdIR7hfxr4vg fbCa475K7i6hhuoQEFCc7p73SC5SPvp/KyV6RmQTAzuvlAH4C2KY2+2+b/TyhzgN5tUI xSCe4n9Y/0SGBFmCwH/G+0KKTO6GUJF4FdMecprY9CvhRYamEF89Zo+seGYo1PT9g1aB KtzxL4pRw4aZzzo9AEvL8tlJAcItxQym1EeIu9er/Mj2nWi1IOZk/SqHOzHHEkjzD4aS dCaOKrJhSlc5HEqVKJMvb9wleOb5yHWrFpPTWT8hM5H9GOqckq+QCc6chD2uYfI9ZiV8 KFbA== X-Gm-Message-State: AOAM530subIA45Cl0JehubBoM6EXudM6KWjujZwwIF1uGUPoFrixBIBK CWP9SWAYqHaA4WibxIEtsaahYA== 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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. -- 2.25.1