mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel: smp: Remove unnecessary (void*) conversions
@ 2022-12-13  7:45 Li zeming
  2022-12-16  2:20 ` Li zeming
  0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2022-12-13  7:45 UTC (permalink / raw)
  To: richard.henderson, ink, mattst88, akpm
  Cc: linux-alpha, linux-kernel, Li zeming

The void * type pointer does not need to be cast and assigned to another
pointer.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 arch/alpha/kernel/smp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c
index f4e20f75438f..0ede4b044e86 100644
--- a/arch/alpha/kernel/smp.c
+++ b/arch/alpha/kernel/smp.c
@@ -628,7 +628,7 @@ flush_tlb_all(void)
 static void
 ipi_flush_tlb_mm(void *x)
 {
-	struct mm_struct *mm = (struct mm_struct *) x;
+	struct mm_struct *mm = x;
 	if (mm == current->active_mm && !asn_locked())
 		flush_tlb_current(mm);
 	else
@@ -670,7 +670,7 @@ struct flush_tlb_page_struct {
 static void
 ipi_flush_tlb_page(void *x)
 {
-	struct flush_tlb_page_struct *data = (struct flush_tlb_page_struct *)x;
+	struct flush_tlb_page_struct *data = x;
 	struct mm_struct * mm = data->mm;
 
 	if (mm == current->active_mm && !asn_locked())
-- 
2.18.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] kernel: smp: Remove unnecessary (void*) conversions
  2022-12-13  7:45 [PATCH] kernel: smp: Remove unnecessary (void*) conversions Li zeming
@ 2022-12-16  2:20 ` Li zeming
  0 siblings, 0 replies; 2+ messages in thread
From: Li zeming @ 2022-12-16  2:20 UTC (permalink / raw)
  To: zeming; +Cc: akpm, ink, linux-alpha, linux-kernel, mattst88, richard.henderson


This patch shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kernel-smp-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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-16  2:20 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:45 [PATCH] kernel: smp: Remove unnecessary (void*) conversions Li zeming
2022-12-16  2:20 ` 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®