]> www.infradead.org Git - linux-platform-drivers-x86.git/commit
bus: ti-sysc: Use kzalloc for allocating only one thing
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 29 Dec 2020 13:51:47 +0000 (21:51 +0800)
committerTony Lindgren <tony@atomide.com>
Wed, 24 Mar 2021 11:44:04 +0000 (13:44 +0200)
commitd995d3d025bbd2d89abf12418f20d19bc0cb0130
tree091f89d9cf1b7e2cbb164d51cc538ffae5dc4468
parent52fbb5aabb5cf621627dff10783f4fd2a4828aef
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>
drivers/bus/ti-sysc.c