diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2023-03-03 05:50:47 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-03-28 17:43:44 +0300 |
commit | 0e2cb49ef104738de2701d6badd08f2178c13aff (patch) | |
tree | 4ebcf57b28df1b6c3adbbe0dd8841283ccd12880 /arch/arm64/kernel | |
parent | d2c48b2387eb89e0bf2a2e06e30987cf410acad4 (diff) | |
download | linux-0e2cb49ef104738de2701d6badd08f2178c13aff.tar.xz |
arm64: armv8_deprecated: remove unnecessary (void*) conversions
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>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/armv8_deprecated.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/armv8_deprecated.c b/arch/arm64/kernel/armv8_deprecated.c index 8a9052cf3013..1febd412b4d2 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); } |