bonding: convert bond_has_slaves() to use the neighbour list
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:22 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:06 +0000 (16:02 -0400)
The same way as it was used for its own slave_list.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding.h

index bcef15ec3459018675f436de97135a246c8b2fa4..170c7fce1b44797d3458e2e017e05d7650977bc3 100644 (file)
@@ -72,7 +72,7 @@
        res; })
 
 /* slave list primitives */
-#define bond_has_slaves(bond) !list_empty(&(bond)->slave_list)
+#define bond_has_slaves(bond) !list_empty(&(bond)->dev->adj_list.lower)
 
 #define bond_to_slave(ptr) list_entry(ptr, struct slave, list)