sched: rt: Remove unnecessary ‘NULL’ values from push_task
PATCH 1/1 sched: rt: Remove unnecessary ‘NULL’ values from push_task
push_task is assigned first, so it does not need to initialize the assignment.
Signed-off-by Li zeming <[email protected]>
--- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/rt.c +1 -1
@@ -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)
Signature · 1 line
2.18.2
Quoted 4 lines · Li zeming
push_taskis assigned first, so it does not need to initialize the assignment.Signed-off-by Li zeming <[email protected]>
Subject would be clearer as "Remove unnecessary initialization", but regardless:
Reviewed-by Valentin Schneider <[email protected]>
Quoted 19 lines
--- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/sched/rt.c +1
-2@@ -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