]> Pileus Git - ~andy/linux/commit
bonding: add bond_has_slaves() and use it
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:21 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:06 +0000 (16:02 -0400)
commit0965a1f3f8757a2c20a16a83bc18279009d79a26
treedd7b1c154e8b5e01f31422ebdf3c27df8b583780
parentb386c58b85b23c3a73baa014d01d2943ca8260cd
bonding: add bond_has_slaves() and use it

Currently we verify if we have slaves by checking if bond->slave_list is
empty. Create a define bond_has_slaves() and use it, a bit more readable
and easier to change in the future.

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/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h