forked from Minki/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>
This commit is contained in:
parent
52fbb5aabb
commit
d995d3d025
@ -288,7 +288,7 @@ static int sysc_add_named_clock_from_child(struct sysc *ddata,
|
||||
* limit for clk_get(). If cl ever needs to be freed, it should be done
|
||||
* with clkdev_drop().
|
||||
*/
|
||||
cl = kcalloc(1, sizeof(*cl), GFP_KERNEL);
|
||||
cl = kzalloc(sizeof(*cl), GFP_KERNEL);
|
||||
if (!cl)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user