Re: [PATCH] drm/amdgpu: Replace kzalloc with kcalloc

2019-01-16 Thread Alex Deucher
On Tue, Jan 15, 2019 at 2:58 AM 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) > > Also, improve the coding style and the use of sizeof du

[PATCH] drm/amdgpu: 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) Also, improve the coding style and the use of sizeof during allocation by changing sizeof(struct dc_surface_update) and sizeof(struct