Commit 3ba6baf6 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: natsemi: Remove set but not used variable

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/natsemi/ns83820.c: In function ns83820_get_link_ksettings:
drivers/net/ethernet/natsemi/ns83820.c:1210:11: warning: variable ‘tanar’ set but not used [-Wunused-but-set-variable]

`tanar` is never used, so remove it.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8c33b80
...@@ -1204,7 +1204,7 @@ static int ns83820_get_link_ksettings(struct net_device *ndev, ...@@ -1204,7 +1204,7 @@ static int ns83820_get_link_ksettings(struct net_device *ndev,
struct ethtool_link_ksettings *cmd) struct ethtool_link_ksettings *cmd)
{ {
struct ns83820 *dev = PRIV(ndev); struct ns83820 *dev = PRIV(ndev);
u32 cfg, tanar, tbicr; u32 cfg, tbicr;
int fullduplex = 0; int fullduplex = 0;
u32 supported; u32 supported;
...@@ -1223,7 +1223,7 @@ static int ns83820_get_link_ksettings(struct net_device *ndev, ...@@ -1223,7 +1223,7 @@ static int ns83820_get_link_ksettings(struct net_device *ndev,
/* read current configuration */ /* read current configuration */
cfg = readl(dev->base + CFG) ^ SPDSTS_POLARITY; cfg = readl(dev->base + CFG) ^ SPDSTS_POLARITY;
tanar = readl(dev->base + TANAR); readl(dev->base + TANAR);
tbicr = readl(dev->base + TBICR); tbicr = readl(dev->base + TBICR);
fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0; fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment