]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: intel: Use kzalloc for allocating only one thing
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 29 Dec 2020 13:50:12 +0000 (21:50 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 6 Jan 2021 06:00:02 +0000 (11:30 +0530)
commit0e0da71b4e0ec7b8cedb0d88a815418000351aac
tree3c940c04beb0423206ee35f5a793566e7fc0e79b
parent2af7ba1dc0ac24f9c1b6fbed627077d8df258132
soundwire: intel: 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>
Link: https://lore.kernel.org/r/20201229135012.23472-1-zhengyongjun3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c