i2c: qcom-cci: Remove the unused variable cci_clk_rate
PATCH v2 1/1 i2c: qcom-cci: Remove the unused variable cci_clk_rate
Variable ret 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.
---
Changes in v2:
-Remove redundant code.
drivers/i2c/busses/i2c-qcom-cci.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/i2c/busses/i2c-qcom-cci.c +0 -9
@@ -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;
Signature · 1 line
2.32.0.3.g01195cf9f
Quoted 7 lines · Jiapeng Chong
Variable ret 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 <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Quoted 6 lines
---
Changes in v2:
-Remove redundant code.drivers/i2c/busses/i2c-qcom-cci.c | 9 --------- 1 file changed, 9 deletions(-)
Signature · 2 lines
With best wishes Dmitry
Quoted 1 line · Jiapeng Chong
Variable ret is not effectively used, so delete it.
Variable ret is not deleted, the commit message is misleading.
Quoted 5 lines
drivers/i2c/busses/i2c-qcom-cci.c:526:16: warning: variable ‘cci_clk_rate’ set but not used.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
With the needed change to the commit message:
--
Best wishes,
Vladimir
Andi Shyti
maintainerHi Jiapeng,
Quoted 7 lines · Jiapeng Chong
Variable ret 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 <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
thanks for your patch! Applied to i2c/i2c-host
Thanks,
Andi
Hi Andi,
Quoted 7 lines · Andi Shyti
Hi Jiapeng,
Quoted 4 lines · Jiapeng Chong
Variable ret 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.
Quoted 9 lines
Quoted 3 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>thanks for your patch! Applied to i2c/i2c-host
Thanks,
Andi
FWIW I've noticed that my Reviewed-by tag was added to the accepted change, while it was the conditional one... Actually I don't know how to be aware of such nuances, if only b4 tool is used, likely there is no way for it.
Hopefully I'm not too picky with it.
--
Best wishes,
Vladimir
Quoted 20 lines · Vladimir Zapolskiy
Hi Andi,
Quoted 7 lines · Andi Shyti
Hi Jiapeng,
Quoted 4 lines · Jiapeng Chong
Variable ret 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.Quoted 9 lines
Quoted 3 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>thanks for your patch! Applied to i2c/i2c-host
Thanks,
Andi
Quoted 5 lines
FWIW I've noticed that my Reviewed-by tag was added to the accepted change, while it was the conditional one... Actually I don't know how to be aware of such nuances, if only b4 tool is used, likely there is no way for it.
Hopefully I'm not too picky with it.
If it still matters, this one apparently unnoticed candidate would have been a better choice:
https://lore.kernel.org/linux-i2c/[email protected]
--
Best wishes,
Vladimir
Andi Shyti
maintainerHi Vladimir,
Quoted 16 lines · Vladimir Zapolskiy
Hi Andi,
Quoted 13 lines · Andi Shyti
Hi Jiapeng,
Quoted 7 lines · Jiapeng Chong
Variable ret 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 <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>thanks for your patch! Applied to i2c/i2c-host
Quoted 7 lines
Quoted 3 lines
Thanks,
AndiFWIW I've noticed that my Reviewed-by tag was added to the accepted change, while it was the conditional one... Actually I don't know how to be aware of such nuances, if only b4 tool is used, likely there is no way for it.
I thought the change that made your r-b conditional was the Fixes tag, right? That is added. Have I missed anything?
(I noticed later the v3, but it's basically identical to the one I pushed).
Quoted 1 line
Hopefully I'm not too picky with it.
Absolutely not! Please, keep pinging me if you see anything I might have missed.
Thanks,
Andi
Hi Andi,
Quoted 23 lines · Andi Shyti
Hi Vladimir,
Quoted 20 lines · Vladimir Zapolskiy
Hi Andi,
Quoted 16 lines · Andi Shyti
Hi Jiapeng,
Quoted 7 lines · Jiapeng Chong
Variable ret 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 <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>thanks for your patch! Applied to i2c/i2c-host
Thanks,
Andi
Quoted 6 lines
Quoted 3 lines
FWIW I've noticed that my Reviewed-by tag was added to the accepted change, while it was the conditional one... Actually I don't know how to be aware of such nuances, if only b4 tool is used, likely there is no way for it.
I thought the change that made your r-b conditional was the Fixes tag, right? That is added. Have I missed anything?
ah, no, it was about the copy-pasted commit message, which mentions a much more popular 'ret' local variable.
Quoted 3 lines
(I noticed later the v3, but it's basically identical to the one I pushed).
Well, I believe my concern about a commit message has quite low significance, so let it be kept as is, the most essential code change part is untouched.
Quoted 4 lines
Quoted 1 line
Hopefully I'm not too picky with it.
Absolutely not! Please, keep pinging me if you see anything I might have missed.
Thank you!
--
Best wishes,
Vladmir
Andi Shyti
maintainerHi Vladimir,
Quoted 22 lines · Vladimir Zapolskiy
Quoted 21 lines · Andi Shyti
Quoted 19 lines · Vladimir Zapolskiy
Quoted 5 lines · Andi Shyti
Quoted 4 lines · Jiapeng Chong
Variable ret 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.Quoted 9 lines
Quoted 3 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>thanks for your patch! Applied to i2c/i2c-host
Thanks,
AndiFWIW I've noticed that my Reviewed-by tag was added to the accepted change, while it was the conditional one... Actually I don't know how to be aware of such nuances, if only b4 tool is used, likely there is no way for it.
Quoted 5 lines
Quoted 2 lines
I thought the change that made your r-b conditional was the Fixes tag, right? That is added. Have I missed anything?
ah, no, it was about the copy-pasted commit message, which mentions a much more popular 'ret' local variable.
oh yes, the new commit message says:
"Variable cci_clk_rate is not effectively used, so delete it."
I'm sorry, I will fix it.
Thanks,
Andi