diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-11-30 11:23:58 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-12-02 21:18:56 -0500 |
| commit | 3709aadc8375a1b0c42da5b12e38eddf8133dd4e (patch) | |
| tree | 99012d5f5ec8279d23dee2c9475ed3e8a1853985 /net/dsa | |
| parent | 80e023607982faa6245507c45acf93bb0feb0ded (diff) | |
net: dsa: remove trans argument from mdb ops
The DSA switch MDB ops pass the switchdev_trans structure down to the
drivers, but no one is using them and they aren't supposed to anyway.
Remove the trans argument from MDB prepare and add operations.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
| -rw-r--r-- | net/dsa/switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/switch.c b/net/dsa/switch.c index 205f074fa524..5ee04e9b5796 100644 --- a/net/dsa/switch.c +++ b/net/dsa/switch.c | |||
| @@ -129,7 +129,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds, | |||
| 129 | return -EOPNOTSUPP; | 129 | return -EOPNOTSUPP; |
| 130 | 130 | ||
| 131 | for_each_set_bit(port, group, ds->num_ports) { | 131 | for_each_set_bit(port, group, ds->num_ports) { |
| 132 | err = ds->ops->port_mdb_prepare(ds, port, mdb, trans); | 132 | err = ds->ops->port_mdb_prepare(ds, port, mdb); |
| 133 | if (err) | 133 | if (err) |
| 134 | return err; | 134 | return err; |
| 135 | } | 135 | } |
| @@ -138,7 +138,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds, | |||
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | for_each_set_bit(port, group, ds->num_ports) | 140 | for_each_set_bit(port, group, ds->num_ports) |
| 141 | ds->ops->port_mdb_add(ds, port, mdb, trans); | 141 | ds->ops->port_mdb_add(ds, port, mdb); |
| 142 | 142 | ||
| 143 | return 0; | 143 | return 0; |
| 144 | } | 144 | } |
