Skip to content

Commit 0e2cb49

Browse files
yuzhenfschinawilldeacon
authored andcommitted
arm64: armv8_deprecated: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent d2c48b2 commit 0e2cb49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kernel/armv8_deprecated.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,14 @@ static DEFINE_MUTEX(insn_emulation_mutex);
420420

421421
static void enable_insn_hw_mode(void *data)
422422
{
423-
struct insn_emulation *insn = (struct insn_emulation *)data;
423+
struct insn_emulation *insn = data;
424424
if (insn->set_hw_mode)
425425
insn->set_hw_mode(true);
426426
}
427427

428428
static void disable_insn_hw_mode(void *data)
429429
{
430-
struct insn_emulation *insn = (struct insn_emulation *)data;
430+
struct insn_emulation *insn = data;
431431
if (insn->set_hw_mode)
432432
insn->set_hw_mode(false);
433433
}

0 commit comments

Comments
 (0)