]> Pileus Git - ~andy/linux/commitdiff
bonding: remove unused bond_for_each_slave_from()
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 25 Sep 2013 07:20:20 +0000 (09:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Sep 2013 20:02:06 +0000 (16:02 -0400)
It has no users, so we can remove it.

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/bonding.h

index 96f571dd0bb66b058d5c4617afca13cce6b47a9c..7c8a4b128f652d0943f72ce946f3686970e623e9 100644 (file)
        (bond_is_first_slave(bond, pos) ? bond_last_slave(bond) : \
                                          bond_to_slave((pos)->list.prev))
 
-/**
- * bond_for_each_slave_from - iterate the slaves list from a starting point
- * @bond:      the bond holding this list.
- * @pos:       current slave.
- * @cnt:       counter for max number of moves
- * @start:     starting point.
- *
- * Caller must hold bond->lock
- */
-#define bond_for_each_slave_from(bond, pos, cnt, start) \
-       for (cnt = 0, pos = start; pos && cnt < (bond)->slave_cnt; \
-            cnt++, pos = bond_next_slave(bond, pos))
-
 /**
  * bond_for_each_slave - iterate over all slaves
  * @bond:      the bond holding this list