]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_eth_soc: remove unused variable 'count'
authorQiheng Lin <linqiheng@huawei.com>
Thu, 25 Mar 2021 09:31:51 +0000 (17:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 00:13:38 +0000 (17:13 -0700)
commit974bc1f5730b55aa9f1af8558a7b700488df5c85
tree0b741498cce17da619a72a569ea93604f9eb9d6a
parent36cbf41883884b8790f8a4f53a5286f034673fdf
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>
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c