Skip to contentSkip to conversation

kernel: smp: Remove unnecessary (void*) conversions

PATCH Applied Li zeming 1 participant 2 messages Dec 13, 2022 – Dec 16, 2022 Alpha port

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 kernel: smp: Remove unnecessary (void*) conversions

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

---
 arch/alpha/kernel/smp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/alpha/kernel/smp.c +2 -2
index f4e20f75438f..0ede4b044e86 100644
@@ -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())
Signature · 1 line
2.18.2