linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Gustavo A. R. Silva fe96b99dc7 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 <gustavo@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-25 16:15:35 -05:00
..
amdgpu_dm drm/amdgpu: Replace kzalloc with kcalloc 2019-01-25 16:15:35 -05:00
dc drm/amd/display: Include names of all PP clock types 2019-01-25 16:15:34 -05:00
include drm/amd/display: Remove i2caux folder 2019-01-14 15:40:54 -05:00
modules drm/amd/display: Add new infopacket definition 2019-01-14 15:42:12 -05:00
Kconfig drm/amd/display: Add DC config flag for Raven2 (v2) 2018-09-14 09:36:56 -05:00
Makefile drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00