Browse Source

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 <himanshujha199640@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Himanshu Jha 8 years ago
parent
commit
50dad5fb59
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c

+ 0 - 1
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;
 	int num_queues = 0;
 	struct queue *cur;
 	struct queue *cur;
 
 
-	memset(&q_properties, 0, sizeof(struct queue_properties));
 	memcpy(&q_properties, properties, sizeof(struct queue_properties));
 	memcpy(&q_properties, properties, sizeof(struct queue_properties));
 	q = NULL;
 	q = NULL;
 	kq = NULL;
 	kq = NULL;