Re: [PATCH] RDMA/mlx5: Replace kzalloc with kcalloc

2019-01-15 Thread Gustavo A. R. Silva
On 1/15/19 4:54 PM, Jason Gunthorpe wrote: > On Tue, Jan 15, 2019 at 12:00:48AM -0600, Gustavo A. R. Silva wrote: >> Replace kzalloc() function with its 2-factor argument form, kcalloc(). >> >> This patch replaces cases of: >> >> kzalloc(a * b, gfp) >> >> with: >> kcalloc(a, b, gfp)

Re: [PATCH] RDMA/mlx5: Replace kzalloc with kcalloc

2019-01-15 Thread Jason Gunthorpe
On Tue, Jan 15, 2019 at 12:00:48AM -0600, Gustavo A. R. Silva wrote: > Replace kzalloc() function with its 2-factor argument form, kcalloc(). > > This patch replaces cases of: > > kzalloc(a * b, gfp) > > with: > kcalloc(a, b, gfp) > > This code was detected with the help of

Re: [PATCH] RDMA/mlx5: Replace kzalloc with kcalloc

2019-01-15 Thread Leon Romanovsky
On Tue, Jan 15, 2019 at 12:00:48AM -0600, Gustavo A. R. Silva wrote: > Replace kzalloc() function with its 2-factor argument form, kcalloc(). > > This patch replaces cases of: > > kzalloc(a * b, gfp) > > with: > kcalloc(a, b, gfp) > > This code was detected with the help of Coccinelle.

[PATCH] RDMA/mlx5: Replace kzalloc with kcalloc

2019-01-14 Thread Gustavo A. R. Silva
Replace kzalloc() function with its 2-factor argument form, kcalloc(). This patch replaces cases of: kzalloc(a * b, gfp) with: kcalloc(a, b, gfp) This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/hw/mlx5/main.c | 2