diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-08-05 22:20:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 23:22:42 +0200 |
commit | 47d0dcc35412feb354aace4c5dcc07c03cb4ccb0 (patch) | |
tree | d90418cb977feac7cebf419a43dc36e2ee018f7f /net/dsa/legacy.c | |
parent | net: dsa: remove useless argument in legacy setup (diff) | |
download | linux-47d0dcc35412feb354aace4c5dcc07c03cb4ccb0.tar.xz linux-47d0dcc35412feb354aace4c5dcc07c03cb4ccb0.zip |
net: dsa: remove useless args of dsa_cpu_dsa_setup
dsa_cpu_dsa_setup currently takes 4 arguments but they are all available
from the dsa_port argument. Remove all others.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/legacy.c')
-rw-r--r-- | net/dsa/legacy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c index fa162030a69c..903e8d70c792 100644 --- a/net/dsa/legacy.c +++ b/net/dsa/legacy.c @@ -80,15 +80,13 @@ dsa_switch_probe(struct device *parent, struct device *host_dev, int sw_addr, /* basic switch operations **************************************************/ static int dsa_cpu_dsa_setups(struct dsa_switch *ds) { - struct dsa_port *dport; int ret, port; for (port = 0; port < ds->num_ports; port++) { if (!(dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port))) continue; - dport = &ds->ports[port]; - ret = dsa_cpu_dsa_setup(ds, ds->dev, dport, port); + ret = dsa_cpu_dsa_setup(&ds->ports[port]); if (ret) return ret; } |