vrf: drop unused num_slaves member
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 18 Aug 2015 17:28:02 +0000 (20:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2015 03:16:52 +0000 (20:16 -0700)
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>
drivers/net/vrf.c
include/net/vrf.h

index cd4bc77f2e045788ac1d05a7d0ace9ca139becb6..3d7da0c6f827d76b26bd87d9d6e5baa87c0c91f5 100644 (file)
@@ -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)
index 40e3793c7a053e5a3713c8ee5e3fff49f551e4cb..3bb4af462ed6318a30b124e7f6a00a637505610c 100644 (file)
@@ -24,7 +24,6 @@ struct slave {
 
 struct slave_queue {
        struct list_head        all_slaves;
-       int                     num_slaves;
 };
 
 struct net_vrf {