arm64: armv8_deprecated: remove unnecessary (void*) conversions
authorYu Zhe <yuzhe@nfschina.com>
Fri, 3 Mar 2023 02:50:47 +0000 (10:50 +0800)
committerWill Deacon <will@kernel.org>
Tue, 28 Mar 2023 14:43:44 +0000 (15:43 +0100)
Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20230303025047.19717-1-yuzhe@nfschina.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/armv8_deprecated.c

index 8a9052cf301320035cab7aafc9f81902f26d0a67..1febd412b4d29e7303d5fceb807e545836f37624 100644 (file)
@@ -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);
 }