kernel: process: Remove unnecessary (void*) conversions

Message ID 20221213073633.3586-1-zeming@nfschina.com
State New
Headers
Series kernel: process: Remove unnecessary (void*) conversions |

Commit Message

Li zeming Dec. 13, 2022, 7:36 a.m. UTC
  generic_ptr is a void * type and does not require a cast.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 arch/alpha/kernel/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Li zeming Dec. 16, 2022, 2:22 a.m. UTC | #1
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
  

Patch

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();