From 10aa039b937e40ad08bb0207b5ad5eb05bd354c2 Mon Sep 17 00:00:00 2001 From: Tuukka Tikkanen Date: Wed, 28 Jan 2015 16:28:47 +0200 Subject: 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 Signed-off-by: Amit Kucheria --- topology.c | 2 -- topology.h | 1 - 2 files changed, 3 deletions(-) diff --git a/topology.c b/topology.c index c1b399c..63d4899 100644 --- a/topology.c +++ b/topology.c @@ -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; } diff --git a/topology.h b/topology.h index f0cabbc..5eba04e 100644 --- a/topology.h +++ b/topology.h @@ -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); -- cgit v1.2.3