[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230523234101.3439-1-zeming@nfschina.com>
Date: Wed, 24 May 2023 07:41:01 +0800
From: Li zeming <zeming@...china.com>
To: 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
Cc: linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] sched: deadline: Remove unnecessary ‘NULL’ values from dl_task_offline_migration
later_rq is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@...china.com>
---
kernel/sched/deadline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 5a9a4b81c972..d823e608c7f0 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -667,7 +667,7 @@ static struct rq *find_lock_later_rq(struct task_struct *task, struct rq *rq);
static struct rq *dl_task_offline_migration(struct rq *rq, struct task_struct *p)
{
- struct rq *later_rq = NULL;
+ struct rq *later_rq;
struct dl_bw *dl_b;
later_rq = find_lock_later_rq(p, rq);
--
2.18.2
Powered by blists - more mailing lists