提交 642f0f2a 编写于 作者: A Amitoj Kaur Chawla 提交者: Oded Gabbay

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: NAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
上级 f785d987
...@@ -194,7 +194,7 @@ static void kfd_process_wq_release(struct work_struct *work) ...@@ -194,7 +194,7 @@ static void kfd_process_wq_release(struct work_struct *work)
kfree(p); kfree(p);
kfree((void *)work); kfree(work);
} }
static void kfd_process_destroy_delayed(struct rcu_head *rcu) static void kfd_process_destroy_delayed(struct rcu_head *rcu)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册