diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-04-17 19:23:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-18 00:54:15 +0200 |
commit | b346204737fafce585f62543ed7691fb4a72789d (patch) | |
tree | 0502175681225bdb764240b7972b45d8515245a7 /drivers/net/dsa/mv88e6131.c | |
parent | net: dsa: constify probed name (diff) | |
download | linux-b346204737fafce585f62543ed7691fb4a72789d.tar.xz linux-b346204737fafce585f62543ed7691fb4a72789d.zip |
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/mv88e6131.c')
-rw-r--r-- | drivers/net/dsa/mv88e6131.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c index fa3a35460453..4117c9b56571 100644 --- a/drivers/net/dsa/mv88e6131.c +++ b/drivers/net/dsa/mv88e6131.c @@ -101,8 +101,6 @@ static int mv88e6131_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; |