drm/amdkfd: Remove unessary void pointer cast
authorFiro Yang <firogm@gmail.com>
Thu, 23 Apr 2015 09:58:05 +0000 (17:58 +0800)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2015 09:13:38 +0000 (12:13 +0300)
kmalloc() returns a void pointer - no need to cast it in
drivers/gpu/drm/amd/amdkfd/kfd_process.c::kfd_process_destroy_delayed()

Signed-off-by: Firo Yang <firogm@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c

index 945d6226dc51d5b9b55e6af19229a5a9e872f802..4d7bc95a95d9d007f3ff3e7d1f7f602ff93b250c 100644 (file)
@@ -203,8 +203,7 @@ static void kfd_process_destroy_delayed(struct rcu_head *rcu)
 
        mmdrop(p->mm);
 
-       work = (struct kfd_process_release_work *)
-               kmalloc(sizeof(struct kfd_process_release_work), GFP_ATOMIC);
+       work = kmalloc(sizeof(struct kfd_process_release_work), GFP_ATOMIC);
 
        if (work) {
                INIT_WORK((struct work_struct *) work, kfd_process_wq_release);