diff options
author | Firo Yang <firogm@gmail.com> | 2015-04-23 09:58:05 (GMT) |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2015-05-19 09:13:38 (GMT) |
commit | 1549fcd15cab5e59beb7203583e0a70349dda7c1 (patch) | |
tree | 07804974d4f29e1a63fbb5dc6ba5f47f906c8c2e | |
parent | d0093404f808e23a480dbb4e05c083f1cfeddfd9 (diff) | |
download | linux-1549fcd15cab5e59beb7203583e0a70349dda7c1.tar.xz |
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c index 945d622..4d7bc95 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -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); |