Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70039aa7 authored by Veaceslav Falico's avatar Veaceslav Falico Committed by David S. Miller
Browse files

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: default avatarVeaceslav Falico <vfalico@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0965a1f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)