net/mlxfw: Use kzalloc for allocating only one thing
authorZheng Yongjun <zhengyongjun3@huawei.com>
Wed, 30 Dec 2020 08:18:35 +0000 (16:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2021 00:01:02 +0000 (16:01 -0800)
commit8407b23199b073249fd2056ec18d7cbb74a47534
treeaf693e0a17426c0b3d4703acb9e3228ca84bbcc8
parentdb471ed90f0fb5897c1c18c50905c3cf9e968672
net/mlxfw: 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>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c