hwmon: (coretemp) Remove redundant pdata->cpu_map[]
authorZhang Rui <rui.zhang@intel.com>
Fri, 2 Feb 2024 09:21:40 +0000 (17:21 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:37 +0000 (12:37 -0800)
commit87eb801925a0a391dce0d7519eb1d45a9d7e0953
treea133d9ba3b35b1a135d806231ceaf2caa740316a
parent18d8f5583388f38094b3b17ad3149d2a93a23646
hwmon: (coretemp) Remove redundant pdata->cpu_map[]

pdata->cpu_map[] saves the mapping between cpu core id and the index in
pdata->core_data[]. This is used to find the temp_data structure using
cpu_core_id, by traversing the pdata->cpu_map[] array. But the same goal
can be achieved by traversing the pdata->core_temp[] array directly.

Remove redundant pdata->cpu_map[].

No functional change.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20240202092144.71180-8-rui.zhang@intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c