Skip to content

Commit

Permalink
ns83820: Remove unused have_optical variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Sep 7, 2010
1 parent d1fb627 commit 7457e91
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions drivers/net/ns83820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,6 @@ static int ns83820_get_settings(struct net_device *ndev,
{
struct ns83820 *dev = PRIV(ndev);
u32 cfg, tanar, tbicr;
int have_optical = 0;
int fullduplex = 0;

/*
Expand All @@ -1267,15 +1266,7 @@ static int ns83820_get_settings(struct net_device *ndev,
tanar = readl(dev->base + TANAR);
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;

} else {
/* We have copper */
fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0;
}
fullduplex = (cfg & CFG_DUPSTS) ? 1 : 0;

cmd->supported = SUPPORTED_Autoneg;

Expand Down

0 comments on commit 7457e91

Please sign in to comment.