summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeaceslav Falico <vfalico@redhat.com>2013-09-25 09:20:22 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-26 16:02:06 -0400
commit70039aa7c6c182c488ec23a9669d9f6b21aebe16 (patch)
treee6f943378b98ac2ed876e4f3c94f1887163df151
parent0965a1f3f8757a2c20a16a83bc18279009d79a26 (diff)
downloadtalos-obmc-linux-70039aa7c6c182c488ec23a9669d9f6b21aebe16.tar.gz
talos-obmc-linux-70039aa7c6c182c488ec23a9669d9f6b21aebe16.zip
bonding: convert bond_has_slaves() to use the neighbour list
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>
-rw-r--r--drivers/net/bonding/bonding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
index bcef15ec3459..170c7fce1b44 100644
--- a/drivers/net/bonding/bonding.h
+++ b/drivers/net/bonding/bonding.h
@@ -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)
OpenPOWER on IntegriCloud