* [PATCH] kernel: process: Remove unnecessary (void*) conversions
@ 2022-12-13 7:36 Li zeming
2022-12-16 2:22 ` Li zeming
0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2022-12-13 7:36 UTC (permalink / raw)
To: richard.henderson, ink, mattst88, ebiederm, akpm
Cc: linux-alpha, linux-kernel, Li zeming
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(-)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-16 2:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 7:36 [PATCH] kernel: process: Remove unnecessary (void*) conversions Li zeming
2022-12-16 2:22 ` Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®