diff options
author | Tuukka Tikkanen <idlestat@tic0.net> | 2015-01-28 16:28:47 +0200 |
---|---|---|
committer | Amit Kucheria <amit.kucheria@linaro.org> | 2015-03-10 02:28:37 +0530 |
commit | 10aa039b937e40ad08bb0207b5ad5eb05bd354c2 (patch) | |
tree | 954147d6ab99bc412e5298e3fac882d7c37c6f6b | |
parent | 96c4890f3addebe9ef1bc735871d786d897c2b78 (diff) |
Topology: Remove unused structure member
The structure member cpu_topology.physical_num is not used for
anything and can be removed.
Signed-off-by: Tuukka Tikkanen <idlestat@tic0.net>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r-- | topology.c | 2 | ||||
-rw-r--r-- | topology.h | 1 |
2 files changed, 0 insertions, 3 deletions
@@ -102,7 +102,6 @@ int add_topo_info(struct cpu_topology *topo_list, struct topology_info *info) ptr = check_pos_from_head(&topo_list->physical_head, s_phy->physical_id); list_add_tail(&s_phy->list_physical, ptr); - topo_list->physical_num++; } else { s_phy = list_entry(ptr, struct cpu_physical, list_physical); } @@ -391,7 +390,6 @@ struct cpu_topology *alloc_cpu_topo_info(void) if (ret == NULL) return ptrerror(__func__); INIT_LIST_HEAD(&ret->physical_head); - ret->physical_num = 0; return ret; } @@ -70,7 +70,6 @@ struct cpu_physical { struct cpu_topology { struct list_head physical_head; - int physical_num; }; extern struct cpu_topology *alloc_cpu_topo_info(void); |