Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/fence: Remove redundant 0 value initialization

The amdgpu_fence struct is already zeroed by kzalloc(). It's redundant to
initialize am_fence->context to 0.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Liao Yuanhong and committed by
Alex Deucher
ee6ba1e6 22dcb283

-1
-1
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
··· 120 120 am_fence = kzalloc(sizeof(*am_fence), GFP_KERNEL); 121 121 if (!am_fence) 122 122 return -ENOMEM; 123 - am_fence->context = 0; 124 123 } else { 125 124 am_fence = af; 126 125 }