Turbostat: Remove useless initialization
authorVincent Brillault <git@lerya.net>
Sat, 18 Apr 2015 08:49:37 +0000 (10:49 +0200)
committerVincent Brillault <git@lerya.net>
Sat, 18 Apr 2015 09:06:17 +0000 (11:06 +0200)
src/turbostat.c

index 61c2abd..9373b61 100644 (file)
@@ -1267,9 +1267,6 @@ allocate_counters(struct thread_data **threads, struct core_data **cores, struct
        if (*packages == NULL)
                goto err_clean_cores;
 
-       for (i = 0; i < topology.num_packages; i++)
-               (*packages)[i].package_id = i;
-
        return 0;
 
 err_clean_cores: