drm/amdkfd: remove memset before memcpy
authorHimanshu Jha <himanshujha199640@gmail.com>
Tue, 29 Aug 2017 19:03:35 +0000 (00:33 +0530)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 29 Aug 2017 19:03:35 +0000 (00:33 +0530)
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>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c

index 1cae95e2b13adedfb19760279861fae827d057a7..03bec765b03d949de8bdac3cd8db62f8c684c92a 100644 (file)
@@ -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;