diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-01-25 12:33:57 -0500 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2016-01-28 07:40:11 -0500 |
commit | 642f0f2a1563b5ab6f5de896f602177ac1f06652 (patch) | |
tree | ac6492549968c9b40013d5fab69023618e70256a | |
parent | f785d98711925aceb198fb96abd786fd19fad657 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 9be007081b72..a902ae037398 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c | |||
@@ -194,7 +194,7 @@ static void kfd_process_wq_release(struct work_struct *work) | |||
194 | 194 | ||
195 | kfree(p); | 195 | kfree(p); |
196 | 196 | ||
197 | kfree((void *)work); | 197 | kfree(work); |
198 | } | 198 | } |
199 | 199 | ||
200 | static void kfd_process_destroy_delayed(struct rcu_head *rcu) | 200 | static void kfd_process_destroy_delayed(struct rcu_head *rcu) |