From: Christophe JAILLET Date: Mon, 27 Jul 2020 10:34:36 +0000 (+0200) Subject: drm/radeon: avoid a useless memset X-Git-Tag: io_uring-5.10-2020-10-20~48^2~23^2~325 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f5cd85555bf2ced9725a1eb5cd68f2c2096e283a;p=linux-block.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 f178ba321715..d099fffbc5be 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; }