From: Or Gerlitz Date: Sat, 14 Jun 2008 01:12:01 +0000 (-0700) Subject: bonding: bond_change_active_slave() cleanup under active-backup X-Git-Tag: v2.6.27-rc1~969^2~289^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709f8a45e8521f2f4229e5fdf3ded1fb77e2ca4e;p=pandora-kernel.git bonding: bond_change_active_slave() cleanup under active-backup simplified the code of bond_change_active_slave() such that under active-backup mode there's one "if (new_active)" test and the rest of the code only does extra checks on top of it. This removed an unneeded "if (bond->send_grat_arp > 0)" check and avoid calling bond_send_gratuitous_arp when there's no active slave. Jay Vosburgh made minor coding style changes to the orignal patch. Signed-off-by: Or Gerlitz Signed-off-by: Jay Vosburgh Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed