bond: fix uninitialized use of use_recirc variable
authorAndy Zhou <azhou@nicira.com>
Tue, 29 Apr 2014 20:04:00 +0000 (13:04 -0700)
committerAndy Zhou <azhou@nicira.com>
Wed, 30 Apr 2014 03:00:06 +0000 (20:00 -0700)
Caught by clang-3.5.

Reported-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
ofproto/bond.c

index f5a9d47..c1a8448 100644 (file)
@@ -1180,10 +1180,11 @@ bond_rebalance(struct bond *bond)
         e->tx_bytes /= 2;
     }
 
-done:
     if (use_recirc && rebalanced) {
         bond_update_post_recirc_rules(bond,true);
     }
+
+done:
     ovs_rwlock_unlock(&rwlock);
 }
 \f