From: Thomas Renninger Date: Tue, 1 Dec 2015 16:14:13 +0000 (+0100) Subject: cpupower: Fix precedence issue X-Git-Tag: v4.5-rc1~125^2~1^3~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7b0e1bf171effb71fa946e26d28895219de179cc;p=karo-tx-linux.git cpupower: Fix precedence issue Signed-off-by: Thomas Renninger Signed-off-by: Rafael J. Wysocki --- diff --git a/tools/power/cpupower/utils/helpers/topology.c b/tools/power/cpupower/utils/helpers/topology.c index 9cbb7fd75171..5f9c908f4557 100644 --- a/tools/power/cpupower/utils/helpers/topology.c +++ b/tools/power/cpupower/utils/helpers/topology.c @@ -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