diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-04-17 20:23:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-18 01:54:15 +0300 |
commit | b346204737fafce585f62543ed7691fb4a72789d (patch) | |
tree | 0502175681225bdb764240b7972b45d8515245a7 /drivers/net/dsa/mv88e6171.c | |
parent | 0209d144e3097fee1fe5d38532e6f0919c80d1ea (diff) | |
download | linux-b346204737fafce585f62543ed7691fb4a72789d.tar.xz |
net: dsa: mv88e6xxx: drop double ds assignment
Every driver assigns ps->ds even though it gets assigned in the shared
mv88e6xxx_setup_common function. Kill redundancy.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6171.c')
-rw-r--r-- | drivers/net/dsa/mv88e6171.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c index 8d86c9ee1adf..ae328750eae8 100644 --- a/drivers/net/dsa/mv88e6171.c +++ b/drivers/net/dsa/mv88e6171.c @@ -76,8 +76,6 @@ static int mv88e6171_setup(struct dsa_switch *ds) struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); int ret; - ps->ds = ds; - ret = mv88e6xxx_setup_common(ds); if (ret < 0) return ret; |