* [PATCH net-next] net: ethernet: mtk_eth_soc: remove unused variable 'count'
@ 2021-03-25 9:31 Qiheng Lin
2021-03-26 0:30 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Qiheng Lin @ 2021-03-25 9:31 UTC (permalink / raw)
To: Felix Fietkau, John Crispin, Sean Wang, Mark Lee, Jakub Kicinski,
Matthias Brugger
Cc: Qiheng Lin, netdev, linux-arm-kernel, linux-mediatek,
kernel-janitors, Hulk Robot
GCC reports the following warning with W=1:
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c:80:9: warning:
variable 'count' set but not used [-Wunused-but-set-variable]
80 | int i, count;
| ^~~~~
This variable is not used in function , this commit
remove it to fix the warning.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
---
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c
index 8ae9efab6d02..98b1d3577bcd 100644
--- a/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c
+++ b/drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c
@@ -77,9 +77,9 @@ static int
mtk_ppe_debugfs_foe_show(struct seq_file *m, void *private, bool bind)
{
struct mtk_ppe *ppe = m->private;
- int i, count;
+ int i;
- for (i = 0, count = 0; i < MTK_PPE_ENTRIES; i++) {
+ for (i = 0; i < MTK_PPE_ENTRIES; i++) {
struct mtk_foe_entry *entry = &ppe->foe_table[i];
struct mtk_foe_mac_info *l2;
struct mtk_flow_addr_info ai = {};
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: ethernet: mtk_eth_soc: remove unused variable 'count'
2021-03-25 9:31 [PATCH net-next] net: ethernet: mtk_eth_soc: remove unused variable 'count' Qiheng Lin
@ 2021-03-26 0:30 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-03-26 0:30 UTC (permalink / raw)
To: 'Qiheng Lin
Cc: nbd, john, sean.wang, Mark-MC.Lee, kuba, matthias.bgg, netdev,
linux-arm-kernel, linux-mediatek, kernel-janitors, hulkci
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Thu, 25 Mar 2021 17:31:51 +0800 you wrote:
> GCC reports the following warning with W=1:
>
> drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c:80:9: warning:
> variable 'count' set but not used [-Wunused-but-set-variable]
> 80 | int i, count;
> | ^~~~~
>
> [...]
Here is the summary with links:
- [net-next] net: ethernet: mtk_eth_soc: remove unused variable 'count'
https://git.kernel.org/netdev/net-next/c/ae8f5867d590
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-26 0:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-25 9:31 [PATCH net-next] net: ethernet: mtk_eth_soc: remove unused variable 'count' Qiheng Lin
2021-03-26 0:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).