Commit e744a209 authored by Neil Horman's avatar Neil Horman

cleanup unused variable

___load_sources is unused, remove it
Signed-off-by: 's avatarNeil Horman <nhorman@tuxdriver.com>
parent ff1927b6
......@@ -161,13 +161,11 @@ static void clear_powersave_mode(struct topo_obj *obj, void *data __attribute__(
}
static void find_overloaded_objs(GList *name, struct load_balance_info *info) {
int ___load_sources;
memset(info, 0, sizeof(struct load_balance_info));
for_each_object(name, gather_load_stats, info);
info->load_sources = (info->load_sources == 0) ? 1 : (info->load_sources);
info->avg_load = info->total_load / info->load_sources;
for_each_object(name, compute_deviations, info);
___load_sources = (info->load_sources == 1) ? 1 : (info->load_sources - 1);
info->std_deviation = (long double)(info->deviations / info->load_sources - 1);
info->std_deviation = sqrt(info->std_deviation);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment