projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7641c1b
)
powerpc/pseries/dlpar: Remove unnecessary cast to kfree()
author
Xu Wang
<vulab@iscas.ac.cn>
Wed, 8 Jul 2020 07:22:28 +0000
(07:22 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 2 May 2022 13:01:46 +0000
(23:01 +1000)
Remove unnecassary cast in the argument to kfree().
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20200708072228.30776-1-vulab@iscas.ac.cn
arch/powerpc/platforms/pseries/dlpar.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/pseries/dlpar.c
b/arch/powerpc/platforms/pseries/dlpar.c
index b1f01ac0c29e3f670a386c1d43b7c2a6054907d0..fb8a256c30538fdfcca31fd1577addd6f3c54bc5 100644
(file)
--- a/
arch/powerpc/platforms/pseries/dlpar.c
+++ b/
arch/powerpc/platforms/pseries/dlpar.c
@@
-389,7
+389,7
@@
static void pseries_hp_work_fn(struct work_struct *work)
handle_dlpar_errorlog(hp_work->errlog);
kfree(hp_work->errlog);
- kfree(
(void *)
work);
+ kfree(work);
}
void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog)