cpupower: Fix precedence issue
authorThomas Renninger <trenn@suse.com>
Tue, 1 Dec 2015 16:14:13 +0000 (17:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Dec 2015 01:30:29 +0000 (02:30 +0100)
Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/cpupower/utils/helpers/topology.c

index 9cbb7fd7517122c423d316efb5e736a52c799d3a..5f9c908f4557e8cadd14d5e4ee1a0c2017cad1f5 100644 (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