drm/radeon: avoid a useless memset
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 27 Jul 2020 10:34:36 +0000 (12:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:24:29 +0000 (16:24 -0400)
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 <christian.koenig@amd.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_gart.c

index f178ba3217151e985b6b5af00959fe9f08af178d..d099fffbc5bebba722ac14534324298facc27f6d 100644 (file)
@@ -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;
 }