Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bus: ti-sysc: Use kzalloc for allocating only one thing

Use kzalloc rather than kcalloc(1,...)

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
@@

- kcalloc(1,
+ kzalloc(
...)
// </smpl>

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Zheng Yongjun and committed by
Tony Lindgren
d995d3d0 52fbb5aa

+1 -1
+1 -1
drivers/bus/ti-sysc.c
··· 288 288 * limit for clk_get(). If cl ever needs to be freed, it should be done 289 289 * with clkdev_drop(). 290 290 */ 291 - cl = kcalloc(1, sizeof(*cl), GFP_KERNEL); 291 + cl = kzalloc(sizeof(*cl), GFP_KERNEL); 292 292 if (!cl) 293 293 return -ENOMEM; 294 294