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
This commit is contained in:
Xu Wang 2020-07-08 07:22:28 +00:00 committed by Michael Ellerman
parent 7641c1bafa
commit 634a0b8fb8
1 changed files with 1 additions and 1 deletions

View File

@ -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)