Skip to content

Commit

Permalink
net: dsa: qca8k: empty qca8k_get_eee
Browse files Browse the repository at this point in the history
phy_ethtool_get_eee is already called by the DSA layer, thus remove the
duplicated call in the qca8k driver.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vivien Didelot authored and David S. Miller committed Aug 2, 2017
1 parent a2444ab commit 193da90
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions drivers/net/dsa/qca8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,16 +695,8 @@ static int
qca8k_get_eee(struct dsa_switch *ds, int port,
struct ethtool_eee *e)
{
struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv;
struct ethtool_eee *p = &priv->port_sts[port].eee;
struct net_device *netdev = ds->ports[port].netdev;
int ret;

ret = phy_ethtool_get_eee(netdev->phydev, p);
e->eee_active = p->eee_active;
e->eee_enabled = p->eee_enabled;

return ret;
/* Nothing to do on the port's MAC */
return 0;
}

static void
Expand Down

0 comments on commit 193da90

Please sign in to comment.