aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-01-15 05:22:02 +0000
committerAlex Deucher <[email protected]>2019-01-25 21:15:35 +0000
commitfe96b99dc72b16e3c8406ab17fe9e73e0aef1bd9 (patch)
treea82389797d377b5f1bac073edc7ae62b4888e90c /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentdrm/amdgpu: add support for self irq on Vega10 v2 (diff)
downloadkernel-fe96b99dc72b16e3c8406ab17fe9e73e0aef1bd9.tar.gz
kernel-fe96b99dc72b16e3c8406ab17fe9e73e0aef1bd9.zip
drm/amdgpu: Replace kzalloc with kcalloc
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 dc_plane_state) to sizeof(*updates) and sizeof(*surfaces), correspondingly. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions