summaryrefslogtreecommitdiff
path: root/drivers/hwmon/drivetemp.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-07-02 09:05:54 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-07-13 18:39:42 +0300
commit8e1187fe7a7fbac4df1a95abe0fffa3a41d345aa (patch)
tree4238d86c0a21b1d7d5b612e4ff472c06d4bc6836 /drivers/hwmon/drivetemp.c
parent5993b9887ac3b80fba78e1a488ac748d6e4429c1 (diff)
downloadlinux-8e1187fe7a7fbac4df1a95abe0fffa3a41d345aa.tar.xz
hwmon: (asus_wmi_sensors) Save a few bytes of memory
The first 'for' loop of asus_wmi_configure_sensor_setup() only computes the number and type of sensors that exist in the system. Here, the 'temp_sensor' structure is only used to store the data collected by asus_wmi_sensor_info(). There is no point in using a devm_ variant for this allocation. This wastes some memory for no good reason. Use the stack instead. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/e23cea6c489fabb109a61e8a33d146a6b74c0529.1656741926.git.christophe.jaillet@wanadoo.fr Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/drivetemp.c')
0 files changed, 0 insertions, 0 deletions