Skip to content

Commit b88c796

Browse files
Jiapeng ChongAndi Shyti
authored andcommitted
i2c: qcom-cci: Remove the unused variable cci_clk_rate
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 <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11532 Fixes: 8284750 ("i2c: qcom-cci: Stop complaining about DT set clock rate") Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent b7ef4e0 commit b88c796

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/i2c/busses/i2c-qcom-cci.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ static const struct dev_pm_ops qcom_cci_pm = {
523523
static int cci_probe(struct platform_device *pdev)
524524
{
525525
struct device *dev = &pdev->dev;
526-
unsigned long cci_clk_rate = 0;
527526
struct device_node *child;
528527
struct resource *r;
529528
struct cci *cci;
@@ -594,14 +593,6 @@ static int cci_probe(struct platform_device *pdev)
594593
return dev_err_probe(dev, -EINVAL, "not enough clocks in DT\n");
595594
cci->nclocks = ret;
596595

597-
/* Retrieve CCI clock rate */
598-
for (i = 0; i < cci->nclocks; i++) {
599-
if (!strcmp(cci->clocks[i].id, "cci")) {
600-
cci_clk_rate = clk_get_rate(cci->clocks[i].clk);
601-
break;
602-
}
603-
}
604-
605596
ret = cci_enable_clocks(cci);
606597
if (ret < 0)
607598
return ret;

0 commit comments

Comments
 (0)