Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1317112
| From | Amitoj Kaur Chawla <amitoj1606@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] gpu: drm: amd: amdkfd: Remove unnecessary cast in kfree |
| Date | 2016-01-25 18:40 +0100 |
| Message-ID | <qUTho-7r7-25@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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> --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 9be0070..a902ae0 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) kfree(p); - kfree((void *)work); + kfree(work); } static void kfd_process_destroy_delayed(struct rcu_head *rcu) -- 1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] gpu: drm: amd: amdkfd: Remove unnecessary cast in kfree Amitoj Kaur Chawla <amitoj1606@gmail.com> - 2016-01-25 18:40 +0100
csiph-web