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>
This commit is contained in:
Veaceslav Falico 2013-09-25 09:20:22 +02:00 committed by David S. Miller
parent 0965a1f3f8
commit 70039aa7c6
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@
res; }) res; })
/* slave list primitives */ /* 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) #define bond_to_slave(ptr) list_entry(ptr, struct slave, list)