endian: add constant versions.
[ccan] / ccan / lbalance / lbalance.c
index a350c81dd29f9e1b1f10197f56f65d76c9bf2ea1..643750cfe3dc01fba51e9e427f3cb21fb7872db7 100644 (file)
@@ -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