From: Andy Zhou Date: Tue, 29 Apr 2014 20:04:00 +0000 (-0700) Subject: bond: fix uninitialized use of use_recirc variable X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~30 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=2f486d4c80dada4194b170ebed0bcf77454b5404 bond: fix uninitialized use of use_recirc variable Caught by clang-3.5. Reported-by: Simon Horman Signed-off-by: Andy Zhou Acked-by: Pritesh Kothari --- 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); }