Commit e23b002b authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller

net: switchdev: remove dev in port_vlan_dump_put

The static switchdev_port_vlan_dump_put function does not need the
net_device parameter, so remove it.
Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79b0eb2a
...@@ -484,8 +484,7 @@ struct switchdev_vlan_dump { ...@@ -484,8 +484,7 @@ struct switchdev_vlan_dump {
u16 end; u16 end;
}; };
static int switchdev_port_vlan_dump_put(struct net_device *dev, static int switchdev_port_vlan_dump_put(struct switchdev_vlan_dump *dump)
struct switchdev_vlan_dump *dump)
{ {
struct bridge_vlan_info vinfo; struct bridge_vlan_info vinfo;
...@@ -531,7 +530,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev, ...@@ -531,7 +530,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev,
for (dump->begin = dump->end = vlan->vid_begin; for (dump->begin = dump->end = vlan->vid_begin;
dump->begin <= vlan->vid_end; dump->begin <= vlan->vid_end;
dump->begin++, dump->end++) { dump->begin++, dump->end++) {
err = switchdev_port_vlan_dump_put(dev, dump); err = switchdev_port_vlan_dump_put(dump);
if (err) if (err)
return err; return err;
} }
...@@ -543,7 +542,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev, ...@@ -543,7 +542,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev,
/* prepend */ /* prepend */
dump->begin = vlan->vid_begin; dump->begin = vlan->vid_begin;
} else { } else {
err = switchdev_port_vlan_dump_put(dev, dump); err = switchdev_port_vlan_dump_put(dump);
dump->flags = vlan->flags; dump->flags = vlan->flags;
dump->begin = vlan->vid_begin; dump->begin = vlan->vid_begin;
dump->end = vlan->vid_end; dump->end = vlan->vid_end;
...@@ -555,7 +554,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev, ...@@ -555,7 +554,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev,
/* append */ /* append */
dump->end = vlan->vid_end; dump->end = vlan->vid_end;
} else { } else {
err = switchdev_port_vlan_dump_put(dev, dump); err = switchdev_port_vlan_dump_put(dump);
dump->flags = vlan->flags; dump->flags = vlan->flags;
dump->begin = vlan->vid_begin; dump->begin = vlan->vid_begin;
dump->end = vlan->vid_end; dump->end = vlan->vid_end;
...@@ -588,7 +587,7 @@ static int switchdev_port_vlan_fill(struct sk_buff *skb, struct net_device *dev, ...@@ -588,7 +587,7 @@ static int switchdev_port_vlan_fill(struct sk_buff *skb, struct net_device *dev,
goto err_out; goto err_out;
if (filter_mask & RTEXT_FILTER_BRVLAN_COMPRESSED) if (filter_mask & RTEXT_FILTER_BRVLAN_COMPRESSED)
/* last one */ /* last one */
err = switchdev_port_vlan_dump_put(dev, &dump); err = switchdev_port_vlan_dump_put(&dump);
} }
err_out: err_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment