2023-03-03 02:51:40

by Yu Zhe

[permalink] [raw]
Subject: [PATCH] arm64: armv8_deprecated: remove unnecessary (void*) conversions

Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe <[email protected]>
---
arch/arm64/kernel/armv8_deprecated.c | 4 ++--
1 file 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);
}
--
2.11.0



2023-03-28 21:34:59

by Will Deacon

[permalink] [raw]
Subject: Re: [PATCH] arm64: armv8_deprecated: remove unnecessary (void*) conversions

On Fri, 3 Mar 2023 10:50:47 +0800, Yu Zhe wrote:
> Pointer variables of void * type do not require type cast.
>
>

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: armv8_deprecated: remove unnecessary (void*) conversions
https://git.kernel.org/arm64/c/0e2cb49ef104

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev