hwmon: (coretemp) Drop unused struct members
Subsystems (2)
PATCH 1/1 hwmon: (coretemp) Drop unused struct members
pdev_entry.cpu and pdev_entry.cpu_core_id aren't used anywhere in the driver code so we can drop these struct members.
Signed-off-by Jean Delvare <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc Guenter Roeck <[email protected]>
Cc Durgadoss R <[email protected]>
--- drivers/hwmon/coretemp.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/hwmon/coretemp.c +0 -4
@@ -97,9 +97,7 @@ struct platform_data {struct pdev_entry {struct list_head list;struct platform_device *pdev; -unsigned int cpu;u16 phys_proc_id; -u16 cpu_core_id; };static LIST_HEAD (pdev_list);
@@ -653,9 +651,7 @@ static int __cpuinit coretemp_device_add } pdev_entry->pdev = pdev; - pdev_entry->cpu = cpu; pdev_entry->phys_proc_id =TO_PHYS_ID (cpu); - pdev_entry->cpu_core_id =TO_CORE_ID (cpu);list_add_tail (&pdev_entry->list, &pdev_list);mutex_unlock (&pdev_list_mutex);
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] [PATCH] hwmon: (coretemp) Drop unused struct
Quoted 7 lines · Jean Delvare
pdev_entry.cpu and pdev_entry.cpu_core_id aren't used anywhere in the driver code so we can drop these struct members.
Signed-off-by Jean Delvare <[email protected]>Cc Fenghua Yu <[email protected]>Cc Guenter Roeck <[email protected]>Cc Durgadoss R <[email protected]>
Nice catch ... thanks, applied.
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors