]> git.baikalelectronics.ru Git - kernel.git/commit
net: mventa: remove unused variable 'dummy' in mvneta_mib_counters_clear()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Sat, 19 Sep 2020 02:26:51 +0000 (10:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Sep 2020 21:17:59 +0000 (14:17 -0700)
commit39de478f27cc97be8b05e4426f06dea50d0c6b1f
tree8c333d17a6c2f0b6152f36f5e473b27844abc4ef
parentb82cda8c58fb95ae7142742f3a9c037ca61eaf15
net: mventa: remove unused variable 'dummy' in mvneta_mib_counters_clear()

Fixes the following W=1 kernel build warning(s):

drivers/net/ethernet/marvell/mvneta.c:754:6: warning:
 variable 'dummy' set but not used [-Wunused-but-set-variable]
  754 |  u32 dummy;
      |      ^~~~~

This variable is not used in function mvneta_mib_counters_clear(), so
remove it to avoid build warning.

Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c