Commit 7457e911 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by David S. Miller

ns83820: Remove unused have_optical variable.

Signed-off-by: default avatarDenis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d1fb6279
...@@ -1246,7 +1246,6 @@ static int ns83820_get_settings(struct net_device *ndev, ...@@ -1246,7 +1246,6 @@ static int ns83820_get_settings(struct net_device *ndev,
{ {
struct ns83820 *dev = PRIV(ndev); struct ns83820 *dev = PRIV(ndev);
u32 cfg, tanar, tbicr; u32 cfg, tanar, tbicr;
int have_optical = 0;
int fullduplex = 0; int fullduplex = 0;
/* /*
...@@ -1267,16 +1266,8 @@ static int ns83820_get_settings(struct net_device *ndev, ...@@ -1267,16 +1266,8 @@ static int ns83820_get_settings(struct net_device *ndev,
tanar = readl(dev->base + TANAR); tanar = readl(dev->base + TANAR);
tbicr = readl(dev->base + TBICR); tbicr = readl(dev->base + TBICR);
if (dev->CFG_cache & CFG_TBI_EN) {
/* we have an optical interface */
have_optical = 1;
fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0; fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0;
} else {
/* We have copper */
fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0;
}
cmd->supported = SUPPORTED_Autoneg; cmd->supported = SUPPORTED_Autoneg;
/* we have optical interface */ /* we have optical interface */
......
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