net: ethernet: et131x: Remove unused variable 'pm_csr'
authorZhang Changzhong <zhangchangzhong@huawei.com>
Fri, 17 Jul 2020 10:33:30 +0000 (18:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jul 2020 01:43:40 +0000 (18:43 -0700)
commiteacc43d2c3b87e1cdffa005b4abd1562c5c8f8a3
tree2562b1ab16f8203ca6982d65f3ef46505d026762
parent5686b10978c580f374b09c9092c073dad83a1b23
net: ethernet: et131x: Remove unused variable 'pm_csr'

Gcc report warning as follows:

drivers/net/ethernet/agere/et131x.c:953:6: warning:
 variable 'pm_csr' set but not used [-Wunused-but-set-variable]
  953 |  u32 pm_csr;
      |      ^~~~~~
drivers/net/ethernet/agere/et131x.c:1002:6:warning:
 variable 'pm_csr' set but not used [-Wunused-but-set-variable]
 1002 |  u32 pm_csr;
      |      ^~~~~~
drivers/net/ethernet/agere/et131x.c:3446:8: warning:
 variable 'pm_csr' set but not used [-Wunused-but-set-variable]
 3446 |    u32 pm_csr;
      |        ^~~~~~

After commit 38df6492eb51 ("et131x: Add PCIe gigabit ethernet driver
et131x to drivers/net"), 'pm_csr' is never used in these functions,
so removing it to avoid build warning.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Acked-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/agere/et131x.c