Re: [PATCH net-next] net/mlxfw: Use kzalloc for allocating only one thing

2021-01-05 Thread David Miller
From: Zheng Yongjun Date: Wed, 30 Dec 2020 16:18:35 +0800 > Use kzalloc rather than kcalloc(1,...) > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > @@ > > - kcalloc(1, > + kzalloc( > ...) > // > > Signed-off-by: Zheng

Re: [PATCH net-next] net/mlxfw: Use kzalloc for allocating only one thing

2020-12-30 Thread Ido Schimmel
On Wed, Dec 30, 2020 at 04:18:35PM +0800, Zheng Yongjun wrote: > Use kzalloc rather than kcalloc(1,...) > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > @@ > > - kcalloc(1, > + kzalloc( > ...) > // > > Signed-off-by: Zheng

[PATCH net-next] net/mlxfw: Use kzalloc for allocating only one thing

2020-12-30 Thread Zheng Yongjun
Use kzalloc rather than kcalloc(1,...) The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ @@ - kcalloc(1, + kzalloc( ...) // Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c | 2 +- 1 file changed, 1