From: Veaceslav Falico Date: Wed, 25 Sep 2013 07:20:22 +0000 (+0200) Subject: bonding: convert bond_has_slaves() to use the neighbour list X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=70039aa7c6c182c488ec23a9669d9f6b21aebe16;p=linux-beck.git 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 CC: Andy Gospodarek Signed-off-by: Veaceslav Falico Signed-off-by: David S. Miller --- 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)