mirror of https://github.com/torvalds/linux.git
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:
parent
22dcb283d6
commit
ee6ba1e69d
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue