From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795044097; b=1d5r9dq7sC2O4hBVFJcQNj7Ds2QyEiReMZKAxCvFWdezystM+ylltAe8oy1GfvVx1ZrD 4DvR7q1K5BqDKL/MvjqjR5XZI+Cb7SObW5CfFkAQ2WC+FOKSBE7oHkFTL9af73iZjd5M3 DEZaQNeUlK4f8kW1IBjQLnMVo8NA4bKhNK7kzI5a+6tgAxRXGzdvM5XWSFZX+bexklO+D cIqePWoFUKrcquFt8ns6AaCnVBthtc69bhG9Wux13GANRNzYydXXrR65gBuyG/3lBWJbu baFhsqEPFAuidCwgKKtfC6SLPS07sP4TmG2vX/54ZCi2YOmnLPA8IIkZk50IbEsGGDg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795044097; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=dIbou9muPpxS0WT9ypuIHkWFKYsqKlfqcBAPdiU1QNg=; b=jQCqALNs7ppTczvuGbjOKc+v7p5xrnrWsRH3Rc3D6zZ0yAe2sch4hQsQgHUbWaCaTRZ7 qsedK2AuLWZIj6DRkKspnE8513RYJSK/i1ANBEstaoQ+7uoCua2KcaaknRLaT8WCeNddN Q1dw/NL2qhizqr/LaxDQ3Rrq1/McJiXDWghnmJxIwLbq48G2rbFT5X93kY7RpRFGsNfd1 DItJ0cmqQjeU18xDv7I6NXfRvbga7JWNwMqYOH6821Way65auHaanjQK6ddXz1y/3mke6 GP+eMLMgclsQFFH5jJ++n+sIM+hAyABFDkX8RldCk9uCUGbwewwZCiWD6xr82chQZMQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=cuN9tzbS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63A17606A325; Wed, 18 Nov 2026 23:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=cuN9tzbS Received: by smtp.kernel.org (Postfix) with ESMTPSA id C47E31F000C4; Wed, 18 Nov 2026 23:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795044097; bh=dIbou9muPpxS0WT9ypuIHkWFKYsqKlfqcBAPdiU1QNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cuN9tzbS1P+JUjDprXuKKPT7GlAlVMTI7ZSfltTJnuqzoHB1PGh2oN3Ro8suinQIB xQ2SJvWPoDIuR/Rpni4LBHa4vkmgAQkAbMb1ZAOuymSWDsh04ZT3+dY6/InGolx8HZ Ofqu2tkPhxQMNYBIb7Cvj5JfKMdTn+WuUF5sic7k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Abaci Robot , Jiapeng Chong , Dmitry Baryshkov , Vladimir Zapolskiy , Andi Shyti , Sasha Levin Subject: [PATCH 6.1 0445/2857] i2c: qcom-cci: Remove the unused variable cci_clk_rate Date: Wed, 18 Nov 2026 15:24:39 +0100 Message-ID: <20261118150217.398735601@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150201.293410965@linuxfoundation.org> References: <20261118150201.293410965@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jiapeng Chong [ Upstream commit b88c79699d72caa947ecaae85839b3563662ccce ] Variable cci_clk_rate is not effectively used, so delete it. drivers/i2c/busses/i2c-qcom-cci.c:526:16: warning: variable ‘cci_clk_rate’ set but not used. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11532 Fixes: 8284750a1829 ("i2c: qcom-cci: Stop complaining about DT set clock rate") Signed-off-by: Jiapeng Chong Reviewed-by: Dmitry Baryshkov Reviewed-by: Vladimir Zapolskiy Signed-off-by: Andi Shyti Stable-dep-of: 7362a1553eb0 ("i2c: qcom-cci: fix device_node refcount leak in cci_probe()/cci_remove()") Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-qcom-cci.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c index db2283bfb3321..16c2b7d9069de 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -523,7 +523,6 @@ static const struct dev_pm_ops qcom_cci_pm = { static int cci_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - unsigned long cci_clk_rate = 0; struct device_node *child; struct resource *r; struct cci *cci; @@ -595,14 +594,6 @@ static int cci_probe(struct platform_device *pdev) } cci->nclocks = ret; - /* Retrieve CCI clock rate */ - for (i = 0; i < cci->nclocks; i++) { - if (!strcmp(cci->clocks[i].id, "cci")) { - cci_clk_rate = clk_get_rate(cci->clocks[i].clk); - break; - } - } - ret = cci_enable_clocks(cci); if (ret < 0) return ret; -- 2.53.0