diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-07-08 07:22:28 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-05-02 23:01:46 +1000 |
commit | 634a0b8fb8826aa990df621a00158a052374b538 (patch) | |
tree | db276edb6ab293fe5aaf1d45afb8279aeb718df6 /arch | |
parent | 7641c1bafacdfcf0cb5e7da59238fbc501da92d6 (diff) | |
download | linux-stable-634a0b8fb8826aa990df621a00158a052374b538.tar.gz linux-stable-634a0b8fb8826aa990df621a00158a052374b538.tar.bz2 linux-stable-634a0b8fb8826aa990df621a00158a052374b538.zip |
powerpc/pseries/dlpar: Remove unnecessary cast to kfree()
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
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/pseries/dlpar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c index b1f01ac0c29e..fb8a256c3053 100644 --- 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) |