aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi zeming <[email protected]>2022-12-13 15:45:22 +0800
committerAndrew Morton <[email protected]>2023-02-02 22:50:00 -0800
commit829715a2d14c7110987bfa5e6173b516c41f8627 (patch)
treeb5ae71ee3f32b6a835dc84aabddfff2499a0d6ec
parent077010cef0aec280ac6eccc217395cbe8543d5a8 (diff)
arch/alpha/kernel/smp.c: remove unnecessary (void*) conversions
The void * type pointer does not need to be cast and assigned to another pointer. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Li zeming <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Cc: Matt Turner <[email protected]> Cc: Richard Henderson <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--arch/alpha/kernel/smp.c4
1 files 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())