diff options
author | Qiheng Lin <linqiheng@huawei.com> | 2021-03-25 12:31:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-26 03:13:38 +0300 |
commit | ae8f5867d59086670ef61e0cbeabde927d4e13a0 (patch) | |
tree | 0b741498cce17da619a72a569ea93604f9eb9d6a /drivers | |
parent | 96ef692841e0d7c0ce4c7160c674f57ff83f3b4c (diff) | |
download | linux-ae8f5867d59086670ef61e0cbeabde927d4e13a0.tar.xz |
net: ethernet: mtk_eth_soc: remove unused variable 'count'
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c | 4 |
1 files 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 = {}; |