]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: sysfs: use kcalloc() instead of kzalloc()
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:09:26 +0000 (21:09 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
commitb819dc9ef064430118634160330eaa93708aad28
tree950b989f8f92b5899e0878d5bb72fa52801dee14
parent95e3ed1513494aa2d0aaba7a99fb7aa8b51dcfc8
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>
drivers/thermal/thermal_sysfs.c