cpupower: Fix precedence issue

Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Thomas Renninger 2015-12-01 17:14:13 +01:00 committed by Rafael J. Wysocki
parent 31ade3b83e
commit 7b0e1bf171

View File

@ -106,7 +106,7 @@ int get_cpu_topology(struct cpupower_topology *cpu_top)
cpu_top->pkgs++;
}
}
if (!cpu_top->core_info[0].pkg == -1)
if (!(cpu_top->core_info[0].pkg == -1))
cpu_top->pkgs++;
/* Intel's cores count is not consecutively numbered, there may