diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-29 21:03:35 +0200 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2017-08-29 21:03:35 +0200 |
commit | 50dad5fb59d12dc9a5a0e96073ee1e5857ac45a2 (patch) | |
tree | 1b43a48eb741a975a24f7d49a96dc75b1561bfb9 /drivers/gpu | |
parent | uapi linux/kfd_ioctl.h: only use __u32 and __u64 (diff) | |
download | linux-50dad5fb59d12dc9a5a0e96073ee1e5857ac45a2.tar.xz linux-50dad5fb59d12dc9a5a0e96073ee1e5857ac45a2.zip |
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')
-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; |