From 2f486d4c80dada4194b170ebed0bcf77454b5404 Mon Sep 17 00:00:00 2001
From: Andy Zhou <azhou@nicira.com>
Date: Tue, 29 Apr 2014 13:04:00 -0700
Subject: [PATCH] bond: fix uninitialized use of use_recirc variable

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ofproto/bond.c b/ofproto/bond.c
index f5a9d47cd..c1a84482a 100644
--- a/ofproto/bond.c
+++ b/ofproto/bond.c
@@ -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);
 }
 
-- 
2.47.0