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)
commit642f0f2a1563b5ab6f5de896f602177ac1f06652
treeac6492549968c9b40013d5fab69023618e70256a
parentf785d98711925aceb198fb96abd786fd19fad657
drm/amdkfd: Remove unnecessary cast in kfree

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