vrf: drop unused num_slaves member
slave_queue has a num_slaves member which is unused, drop it. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
17d95f5ee2
commit
db5dbec5ef
|
@ -335,13 +335,11 @@ static struct slave *__vrf_find_slave_dev(struct slave_queue *queue,
|
|||
static void __vrf_remove_slave(struct slave_queue *queue, struct slave *slave)
|
||||
{
|
||||
list_del(&slave->list);
|
||||
queue->num_slaves--;
|
||||
}
|
||||
|
||||
static void __vrf_insert_slave(struct slave_queue *queue, struct slave *slave)
|
||||
{
|
||||
list_add(&slave->list, &queue->all_slaves);
|
||||
queue->num_slaves++;
|
||||
}
|
||||
|
||||
static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev)
|
||||
|
|
|
@ -24,7 +24,6 @@ struct slave {
|
|||
|
||||
struct slave_queue {
|
||||
struct list_head all_slaves;
|
||||
int num_slaves;
|
||||
};
|
||||
|
||||
struct net_vrf {
|
||||
|
|
Loading…
Reference in New Issue