From: Hawking Zhang Date: Fri, 9 Jun 2017 15:39:31 +0000 (+0800) Subject: drm/amdgpu: avoid to reset wave_front_size to 0 X-Git-Tag: v4.13-rc1~73^2~20^2~22 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=2bbec882c22ef8598c6daf0d52feae9da6f13a04;p=karo-tx-linux.git drm/amdgpu: avoid to reset wave_front_size to 0 No need to clear it. The values are set explicitly. Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index e9dd2c183a58..c1e9756dd975 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -4452,8 +4452,6 @@ static int gfx_v9_0_get_cu_info(struct amdgpu_device *adev, if (!adev || !cu_info) return -EINVAL; - memset(cu_info, 0, sizeof(*cu_info)); - mutex_lock(&adev->grbm_idx_mutex); for (i = 0; i < adev->gfx.config.max_shader_engines; i++) { for (j = 0; j < adev->gfx.config.max_sh_per_se; j++) {