From: Christophe JAILLET Date: Mon, 27 Jul 2020 10:34:36 +0000 (+0200) Subject: drm/radeon: avoid a useless memset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f5cd85555bf2ced9725a1eb5cd68f2c2096e283a;p=linux.git drm/radeon: avoid a useless memset Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Reviewed-by: Christian König Signed-off-by: Christophe JAILLET Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c index f178ba3217151..d099fffbc5beb 100644 --- a/drivers/gpu/drm/radeon/radeon_gart.c +++ b/drivers/gpu/drm/radeon/radeon_gart.c @@ -85,7 +85,6 @@ int radeon_gart_table_ram_alloc(struct radeon_device *rdev) } #endif rdev->gart.ptr = ptr; - memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size); return 0; }