mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 04:25:27 +08:00
drm/amdkfd: Remove unessary void pointer cast
kmalloc() returns a void pointer - no need to cast it in drivers/gpu/drm/amd/amdkfd/kfd_process.c::kfd_process_destroy_delayed() Signed-off-by: Firo Yang <firogm@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
This commit is contained in:
parent
d0093404f8
commit
1549fcd15c
@ -203,8 +203,7 @@ static void kfd_process_destroy_delayed(struct rcu_head *rcu)
|
||||
|
||||
mmdrop(p->mm);
|
||||
|
||||
work = (struct kfd_process_release_work *)
|
||||
kmalloc(sizeof(struct kfd_process_release_work), GFP_ATOMIC);
|
||||
work = kmalloc(sizeof(struct kfd_process_release_work), GFP_ATOMIC);
|
||||
|
||||
if (work) {
|
||||
INIT_WORK((struct work_struct *) work, kfd_process_wq_release);
|
||||
|
Loading…
Reference in New Issue
Block a user