History

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.

Vivien Didelot committed 11 years ago

Commit e23b0021 parent 79b0eb21 file · +5 −6Browse files

Showing the changes to net/switchdev/switchdev.c (1 of 1 file). Show all

Unified · Split

net/switchdev/switchdev.c+5−6
@@ -484,8 +484,7 @@ struct switchdev_vlan_dump { · 483 unmodified lines
484484 u16 end;
485485 };
486486
487−static int switchdev_port_vlan_dump_put(struct net_device *dev,
488− struct switchdev_vlan_dump *dump)
487+static int switchdev_port_vlan_dump_put(struct switchdev_vlan_dump *dump)
489488 {
490489 struct bridge_vlan_info vinfo;
491490
@@ -531,7 +530,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev, · 39 unmodified lines
531530 for (dump->begin = dump->end = vlan->vid_begin;
532531 dump->begin <= vlan->vid_end;
533532 dump->begin++, dump->end++) {
534− err = switchdev_port_vlan_dump_put(dev, dump);
533+ err = switchdev_port_vlan_dump_put(dump);
535534 if (err)
536535 return err;
537536 }
@@ -543,7 +542,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev, · 5 unmodified lines
543542 /* prepend */
544543 dump->begin = vlan->vid_begin;
545544 } else {
546− err = switchdev_port_vlan_dump_put(dev, dump);
545+ err = switchdev_port_vlan_dump_put(dump);
547546 dump->flags = vlan->flags;
548547 dump->begin = vlan->vid_begin;
549548 dump->end = vlan->vid_end;
@@ -555,7 +554,7 @@ static int switchdev_port_vlan_dump_cb(struct net_device *dev, · 5 unmodified lines
555554 /* append */
556555 dump->end = vlan->vid_end;
557556 } else {
558− err = switchdev_port_vlan_dump_put(dev, dump);
557+ err = switchdev_port_vlan_dump_put(dump);
559558 dump->flags = vlan->flags;
560559 dump->begin = vlan->vid_begin;
561560 dump->end = vlan->vid_end;
@@ -588,7 +587,7 @@ static int switchdev_port_vlan_fill(struct sk_buff *skb, struct net_device *dev, · 26 unmodified lines
588587 goto err_out;
589588 if (filter_mask & RTEXT_FILTER_BRVLAN_COMPRESSED)
590589 /* last one */
591− err = switchdev_port_vlan_dump_put(dev, &dump);
590+ err = switchdev_port_vlan_dump_put(&dump);
592591 }
593592
594593 err_out: