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: Zheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c8c33b80f4
commit
3ba6baf64b
@ -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,
|
|||||||
|
|
||||||
/* 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user