[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220704093041.18697-1-yuzhe@nfschina.com>
Date: Mon, 4 Jul 2022 17:30:41 +0800
From: Yu Zhe <yuzhe@...china.com>
To: mathieu.desnoyers@...icios.com, paulmck@...nel.org,
mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com, vschneid@...hat.com, hannes@...xchg.org,
surenb@...gle.com
Cc: linux-kernel@...r.kernel.org, liqiong@...china.com,
Yu Zhe <yuzhe@...china.com>
Subject: [PATCH] sched: remove unnecessary type castings.
remove unnecessary void* type castings.
Signed-off-by: Yu Zhe <yuzhe@...china.com>
---
kernel/sched/membarrier.c | 2 +-
kernel/sched/psi.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/membarrier.c b/kernel/sched/membarrier.c
index 0c5be7ebb1dc..08b120f11180 100644
--- a/kernel/sched/membarrier.c
+++ b/kernel/sched/membarrier.c
@@ -198,7 +198,7 @@ static void ipi_rseq(void *info)
static void ipi_sync_rq_state(void *info)
{
- struct mm_struct *mm = (struct mm_struct *) info;
+ struct mm_struct *mm = info;
if (current->mm != mm)
return;
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c
index a337f3e35997..9a67538e4403 100644
--- a/kernel/sched/psi.c
+++ b/kernel/sched/psi.c
@@ -634,7 +634,7 @@ static void psi_poll_work(struct psi_group *group)
static int psi_poll_worker(void *data)
{
- struct psi_group *group = (struct psi_group *)data;
+ struct psi_group *group = data;
sched_set_fifo_low(current);
--
2.11.0
Powered by blists - more mailing lists