Skip to content

Commit

Permalink
net: ethernet: mtk_eth_soc: remove unused variable 'count'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Qiheng Lin authored and David S. Miller committed Mar 26, 2021
1 parent 96ef692 commit ae8f586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit ae8f586

Please sign in to comment.