bonding: Relax unneeded _safe lists iterations.
commit0883beca7f39ab0c6447af35080e5caaa07418e3
authorPavel Emelyanov <xemul@openvz.org>
Sun, 18 May 2008 04:10:10 +0000 (17 21:10 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 22 May 2008 10:34:22 +0000 (22 06:34 -0400)
tree160996e2c3483095ec5a1b88cfa975a6f1982533
parent0dd646fe0549251e79d6fb03e6773bcc6ccea61f
bonding: Relax unneeded _safe lists iterations.

Many places either do not modify the list under the list_for_each_xxx,
or break out of the loop as soon as the first element is removed.

Thus, this _safe iteration just occupies some unneeded .text space
and requires an additional variable.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c