Code

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 61c2abd4f61727893a11fcccc0e43f280a54e015..9373b61a6a6c20f9ff4f9ccc864ea3a762ef42bc 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: