Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4D883C9ED9 for ; Tue, 22 Sep 2026 16:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790094018; cv=none; b=XQF37lS5xQSuZ07mVJ9isL7jBbxvUntxb60qT3y+xItnZ32aphTxyt5Jh89PLOa6PsqcLg+JCJPXvJ43xkc9HjfOzRTPVRudZbmkUlc2HCxbgZlFbzDnQ/3aBVbfdWxUL7S2+9U6RoVXD0A+y3+jVlp14/ESP1ApmNk6V7eZo/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790094018; c=relaxed/simple; bh=h+ZUiWqjzo1ersmTGVzrWOag+RXzrQGzXRIfjbU3/tI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=guHmbYWmuzXZnU9zSYU45U/1+d5ypUlsPxa5fUpcCvaTQkteu1GzLTNiNKKTXYsnkNe4l/YnHu4ycVwswkVa3a5znibzCoLxOojuFrworrRlhC9Pz7BsoW1aUAga/21FpztlByDbtM+FhIOg6aiZBtb3EiDjOQrwM755Z0TJGNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PqIjnOJY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PqIjnOJY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A6E91F00898; Tue, 22 Sep 2026 16:20:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790094016; bh=oHfGmlvMlNVTIe8wF3x3arMgd86YKS3R5x73xBsXo3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PqIjnOJY1di0g+cvxx549SjYzR7VaQoUlRkYTcL/QwMFxyjGLc0aoDgoww0ovH+G4 xZdKbXKFGfJAqWtJQi7ru0fq6IRQa2XuSbolNOlRgJELK1TR7miUG9ruslaaLMHNTj VsSgXVwFmWVxvlVe7IR0r2xKXKBg3Er9gt91V1uCmMVnmBBYQI0gGz/4QvsmHpwuj3 v4JaAW/h7PFQ+5f9+O/B3m3xHCUBtasexOa+u9yr+5m+IrasW05QWqt3XTY/LfKAsq eODGBW73b8haC+/AdjVdXkt6n5rbPBhTmDTLD9uSphSKjhfvqgu+M3zRoJP4SIFfs1 qyHCwB+VUaIpQ== From: Sasha Levin To: stable@vger.kernel.org Cc: Jiapeng Chong , Abaci Robot , Dmitry Baryshkov , Vladimir Zapolskiy , Andi Shyti , Sasha Levin Subject: [PATCH 6.12.y 2/3] i2c: qcom-cci: Remove the unused variable cci_clk_rate Date: Tue, 22 Sep 2026 12:20:12 -0400 Message-ID: <20260922162013.3007836-2-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260922162013.3007836-1-sashal@kernel.org> References: <2026092210-spookily-spirited-3697@gregkh> <20260922162013.3007836-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 22fae6a5a9022..87a4c2d0ee9cd 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; @@ -594,14 +593,6 @@ static int cci_probe(struct platform_device *pdev) return dev_err_probe(dev, -EINVAL, "not enough clocks in DT\n"); 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