[PATCH] arm64: kexec: remove unnecessary (void*) conversions
From: Yu Zhe
Date: Thu Mar 02 2023 - 21:58:10 EST
Pointer variables of void * type do not require type cast.
Signed-off-by: Yu Zhe <yuzhe@xxxxxxxxxxxx>
---
arch/arm64/kernel/machine_kexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c
index ce3d40120f72..d35cb0568f84 100644
--- a/arch/arm64/kernel/machine_kexec.c
+++ b/arch/arm64/kernel/machine_kexec.c
@@ -102,7 +102,7 @@ static void kexec_segment_flush(const struct kimage *kimage)
/* Allocates pages for kexec page table */
static void *kexec_page_alloc(void *arg)
{
- struct kimage *kimage = (struct kimage *)arg;
+ struct kimage *kimage = arg;
struct page *page = kimage_alloc_control_pages(kimage, 0);
void *vaddr = NULL;
--
2.11.0