diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-30 00:33:35 +0530 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2017-08-30 00:33:35 +0530 |
commit | 50dad5fb59d12dc9a5a0e96073ee1e5857ac45a2 (patch) | |
tree | 1b43a48eb741a975a24f7d49a96dc75b1561bfb9 /drivers/gpu/drm | |
parent | 472b46c352c9ff0b6fa57dbf85d77c51901a3368 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |