thermal: cpu_cooling: Replace kmalloc with kmalloc_array
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 23 May 2017 07:03:06 +0000 (12:33 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:33:04 +0000 (17:33 -0700)
commitf19b1a1735f7453c35031ed5ca3883f20176dde6
tree3348826afcc73055ae91cf3b2cb2db2828c485c3
parentd72b4015839cca333a8e0108b1739a50f03d2acc
thermal: cpu_cooling: Replace kmalloc with kmalloc_array

Checkpatch reports following:

WARNING: Prefer kmalloc_array over kmalloc with multiply
+ cpufreq_cdev->freq_table = kmalloc(sizeof(*cpufreq_cdev->freq_table) * i,

Fix that.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c