bonding: remove useless assignment
authorNicolas de Pesloüan <nicolas.2p.debian@free.fr>
Wed, 7 Oct 2009 21:11:00 +0000 (14:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 21:11:00 +0000 (14:11 -0700)
commit49b4ad92d1a5bb9909deb3216ffec6f0febc7b71
tree0059b4df75efc6a8b1a44751912ed6a425d9ed4f
parent3c6aaa24613cbd56f853363e3ce00091a9d2eac8
bonding: remove useless assignment

The variable old_active is first set to bond->curr_active_slave.
Then, it is unconditionally set to new_active, without being used in between.

The first assignment, having no side effect, is useless.

Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c