From: Yu Zhe Date: Fri, 3 Mar 2023 02:50:47 +0000 (+0800) Subject: arm64: armv8_deprecated: remove unnecessary (void*) conversions X-Git-Tag: v6.4-rc1~166^2~4^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e2cb49ef104738de2701d6badd08f2178c13aff;p=thirdparty%2Fkernel%2Flinux.git arm64: armv8_deprecated: remove unnecessary (void*) conversions Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe Link: https://lore.kernel.org/r/20230303025047.19717-1-yuzhe@nfschina.com Signed-off-by: Will Deacon --- diff --git a/arch/arm64/kernel/armv8_deprecated.c b/arch/arm64/kernel/armv8_deprecated.c index 8a9052cf30132..1febd412b4d29 100644 --- a/arch/arm64/kernel/armv8_deprecated.c +++ b/arch/arm64/kernel/armv8_deprecated.c @@ -420,14 +420,14 @@ static DEFINE_MUTEX(insn_emulation_mutex); static void enable_insn_hw_mode(void *data) { - struct insn_emulation *insn = (struct insn_emulation *)data; + struct insn_emulation *insn = data; if (insn->set_hw_mode) insn->set_hw_mode(true); } static void disable_insn_hw_mode(void *data) { - struct insn_emulation *insn = (struct insn_emulation *)data; + struct insn_emulation *insn = data; if (insn->set_hw_mode) insn->set_hw_mode(false); }