mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
net: dsa: remove trans argument from vlan ops
The DSA switch VLAN 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 VLAN prepare and add operations.
At the same time, fix the following checkpatch warning:
WARNING: line over 80 characters
#74: FILE: drivers/net/dsa/dsa_loop.c:177:
+ const struct switchdev_obj_port_vlan *vlan)
Signed-off-by: Vivien Didelot <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
183dea5818
commit
80e0236079
7 changed files with 18 additions and 29 deletions
|
|
@ -178,7 +178,7 @@ static int dsa_switch_vlan_add(struct dsa_switch *ds,
|
|||
return -EOPNOTSUPP;
|
||||
|
||||
for_each_set_bit(port, members, ds->num_ports) {
|
||||
err = ds->ops->port_vlan_prepare(ds, port, vlan, trans);
|
||||
err = ds->ops->port_vlan_prepare(ds, port, vlan);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
|
@ -187,7 +187,7 @@ static int dsa_switch_vlan_add(struct dsa_switch *ds,
|
|||
}
|
||||
|
||||
for_each_set_bit(port, members, ds->num_ports)
|
||||
ds->ops->port_vlan_add(ds, port, vlan, trans);
|
||||
ds->ops->port_vlan_add(ds, port, vlan);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue