2022-12-13 07:40:58

by Li zeming

[permalink] [raw]
Subject: [PATCH] kernel: process: Remove unnecessary (void*) conversions

generic_ptr is a void * type and does not require a cast.

Signed-off-by: Li zeming <[email protected]>
---
arch/alpha/kernel/process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index 65fdae9e48f3..5bc8be1eba11 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -74,7 +74,7 @@ struct halt_info {
static void
common_shutdown_1(void *generic_ptr)
{
- struct halt_info *how = (struct halt_info *)generic_ptr;
+ struct halt_info *how = generic_ptr;
struct percpu_struct *cpup;
unsigned long *pflags, flags;
int cpuid = smp_processor_id();
--
2.18.2


2022-12-16 02:50:28

by Li zeming

[permalink] [raw]
Subject: [PATCH] kernel: process: Remove unnecessary (void*) conversions


This patch shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kernel-process-remove-unnecessary-void-conversions.patch

This patch later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm