Commit 634a0b8f authored by Xu Wang's avatar Xu Wang Committed by Michael Ellerman
Browse files

powerpc/pseries/dlpar: Remove unnecessary cast to kfree()



Remove unnecassary cast in the argument to kfree().

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200708072228.30776-1-vulab@iscas.ac.cn
parent 7641c1ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)