drm/amdkfd: Remove unnecessary cast in kfree
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Mon, 25 Jan 2016 17:33:57 +0000 (23:03 +0530)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 28 Jan 2016 12:40:11 +0000 (14:40 +0200)
Remove an unnecassary cast in the argument to kfree.

Found using Coccinelle. The semantic patch used to find this is as follows:

//<smpl>
@@
type T;
expression *f;
@@

- kfree((T *)(f));
+ kfree(f);
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c

index 9be007081b72a8b5c75b4baf1fe01e92bfe792bc..a902ae037398389cf6e19c1ab7379ca64e6a46ed 100644 (file)
@@ -194,7 +194,7 @@ static void kfd_process_wq_release(struct work_struct *work)
 
        kfree(p);
 
-       kfree((void *)work);
+       kfree(work);
 }
 
 static void kfd_process_destroy_delayed(struct rcu_head *rcu)
This page took 0.029589 seconds and 5 git commands to generate.