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>
This commit is contained in:
Liao Yuanhong 2025-08-19 16:25:21 +08:00 committed by Alex Deucher
parent 22dcb283d6
commit ee6ba1e69d
1 changed files with 0 additions and 1 deletions

View File

@ -120,7 +120,6 @@ int amdgpu_fence_emit(struct amdgpu_ring *ring, struct dma_fence **f,
am_fence = kzalloc(sizeof(*am_fence), GFP_KERNEL); am_fence = kzalloc(sizeof(*am_fence), GFP_KERNEL);
if (!am_fence) if (!am_fence)
return -ENOMEM; return -ENOMEM;
am_fence->context = 0;
} else { } else {
am_fence = af; am_fence = af;
} }