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>
This commit is contained in:

committed by
David S. Miller

parent
80e0236079
commit
3709aadc83
@@ -856,16 +856,14 @@ exit:
|
||||
}
|
||||
|
||||
static int ksz_port_mdb_prepare(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_mdb *mdb,
|
||||
struct switchdev_trans *trans)
|
||||
const struct switchdev_obj_port_mdb *mdb)
|
||||
{
|
||||
/* nothing to do */
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ksz_port_mdb_add(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_mdb *mdb,
|
||||
struct switchdev_trans *trans)
|
||||
const struct switchdev_obj_port_mdb *mdb)
|
||||
{
|
||||
struct ksz_device *dev = ds->priv;
|
||||
u32 static_table[4];
|
||||
|
Reference in New Issue
Block a user