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)
commit235ae89b66767652f9e9e10946b8a38caf6a26f6
tree3c940c04beb0423206ee35f5a793566e7fc0e79b
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
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