[PATCH] arm64: kexec: remove unnecessary (void*) conversions

Yu Zhe yuzhe at nfschina.com
Thu Mar 2 18:57:15 PST 2023


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

Signed-off-by: Yu Zhe <yuzhe at nfschina.com>
---
 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




More information about the linux-arm-kernel mailing list