X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Flbalance%2Flbalance.c;h=643750cfe3dc01fba51e9e427f3cb21fb7872db7;hb=ed95d8600afe1564ffd1783ae9ea0ef6324904dc;hp=a350c81dd29f9e1b1f10197f56f65d76c9bf2ea1;hpb=a6b5111fe6948e51114c33aa34785c9fd0d403e6;p=ccan diff --git a/ccan/lbalance/lbalance.c b/ccan/lbalance/lbalance.c index a350c81d..643750cf 100644 --- a/ccan/lbalance/lbalance.c +++ b/ccan/lbalance/lbalance.c @@ -242,7 +242,7 @@ void lbalance_task_free(struct lbalance_task *task, * are overloaded. */ static unsigned int best_target(const struct lbalance *lb) { - unsigned int i, best = 0, found_drop = 0; + unsigned int i, found_drop = 0; float best_f_max = -1.0, cliff = -1.0; #if 0 @@ -267,7 +267,6 @@ static unsigned int best_target(const struct lbalance *lb) #endif best_f_max = f - (f / (i + 1)) / 4; cliff = f - (f / (i + 1)) / 2; - best = i; found_drop = 0; } else if (!found_drop && f < cliff) { #if 0