projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d009340
)
drm/amdkfd: Remove unessary void pointer cast
author
Firo Yang
<firogm@gmail.com>
Thu, 23 Apr 2015 09:58:05 +0000
(17:58 +0800)
committer
Oded Gabbay
<oded.gabbay@gmail.com>
Tue, 19 May 2015 09:13:38 +0000
(12:13 +0300)
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>
drivers/gpu/drm/amd/amdkfd/kfd_process.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/amd/amdkfd/kfd_process.c
b/drivers/gpu/drm/amd/amdkfd/kfd_process.c
index 945d6226dc51d5b9b55e6af19229a5a9e872f802..4d7bc95a95d9d007f3ff3e7d1f7f602ff93b250c 100644
(file)
--- 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);