summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_core.c
diff options
context:
space:
mode:
authorEduardo Valentin2016-11-08 06:09:26 +0100
committerZhang Rui2016-11-23 03:06:12 +0100
commitb819dc9ef064430118634160330eaa93708aad28 (patch)
tree950b989f8f92b5899e0878d5bb72fa52801dee14 /drivers/thermal/thermal_core.c
parentthermal: core: use kzalloc(sizeof(*ptr),...) (diff)
downloadkernel-qcow2-linux-b819dc9ef064430118634160330eaa93708aad28.tar.gz
kernel-qcow2-linux-b819dc9ef064430118634160330eaa93708aad28.tar.xz
kernel-qcow2-linux-b819dc9ef064430118634160330eaa93708aad28.zip
thermal: sysfs: use kcalloc() instead of kzalloc()
Simplify size computation by using kcalloc() for allocating memory for arrays. Cc: Zhang Rui <rui.zhang@intel.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/thermal_core.c')
0 files changed, 0 insertions, 0 deletions