Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214299
b: refs/heads/master
c: 7457e91
h: refs/heads/master
i:
  214297: 325a772
  214295: 250f20e
v: v3
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Sep 7, 2010
1 parent dce04f0 commit b4f2fc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1fb62796cdac6899ebd4319e4a610684db063e9
refs/heads/master: 7457e911c72eb0041b007943b0a29aab5a1c4a39
11 changes: 1 addition & 10 deletions trunk/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 b4f2fc4

Please sign in to comment.