From: Himanshu Jha Date: Tue, 29 Aug 2017 19:03:35 +0000 (+0530) Subject: drm/amdkfd: remove memset before memcpy X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50dad5fb59d12dc9a5a0e96073ee1e5857ac45a2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/amdkfd: remove memset before memcpy calling memcpy immediately after memset with the same region of memory makes memset redundant. Signed-off-by: Himanshu Jha Signed-off-by: Oded Gabbay --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c index 1cae95e2b13a..03bec765b03d 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c @@ -143,7 +143,6 @@ int pqm_create_queue(struct process_queue_manager *pqm, int num_queues = 0; struct queue *cur; - memset(&q_properties, 0, sizeof(struct queue_properties)); memcpy(&q_properties, properties, sizeof(struct queue_properties)); q = NULL; kq = NULL;