]> Pileus Git - ~andy/linux/commit
bonding: remove __get_next_port()
authorVeaceslav Falico <vfalico@redhat.com>
Fri, 27 Sep 2013 14:11:57 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Sep 2013 22:27:59 +0000 (15:27 -0700)
commit3c4c88a138f0857b9e77266e09ad147d17629401
treeb7cb957d6edee3b07bb7d60270bc9449a17a55dd
parent746844931ed400eef32edaa069b996eb622bc39a
bonding: remove __get_next_port()

Currently this function is only used in constructs like

for (port = __get_first_port(bond); port; port = __get_next_port(port))

which is basicly the same as

bond_for_each_slave(bond, slave, iter) {
port = &(SLAVE_AD_INFO(slave).port);

but a more time consuming.

Remove the function and convert the users to bond_for_each_slave().

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