[PATCH] sched: rt: Remove unnecessary ‘NULL’ values from push_task

From: Li zeming
Date: Tue May 09 2023 - 03:23:27 EST


push_task is assigned first, so it does not need to initialize the
assignment.

Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
---
kernel/sched/rt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 662c565745fd..55e480d5174a 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -2073,7 +2073,7 @@ static int push_rt_task(struct rq *rq, bool pull)
}

if (is_migration_disabled(next_task)) {
- struct task_struct *push_task = NULL;
+ struct task_struct *push_task;
int cpu;

if (!pull || rq->push_busy)
--
2.18.2