drm/amdgpu: remove not needed memset
Fixes coccicheck warning: drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c:64:13-31: WARNING: dma_alloc_coherent use in ih -> ring already zeroes out memory, so memset is not needed Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Родитель
b992691d45
Коммит
1664194925
|
@ -66,7 +66,6 @@ int amdgpu_ih_ring_init(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih,
|
||||||
if (ih->ring == NULL)
|
if (ih->ring == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
memset((void *)ih->ring, 0, ih->ring_size + 8);
|
|
||||||
ih->gpu_addr = dma_addr;
|
ih->gpu_addr = dma_addr;
|
||||||
ih->wptr_addr = dma_addr + ih->ring_size;
|
ih->wptr_addr = dma_addr + ih->ring_size;
|
||||||
ih->wptr_cpu = &ih->ring[ih->ring_size / 4];
|
ih->wptr_cpu = &ih->ring[ih->ring_size / 4];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче