diff mbox series

[4/4] sched: core: drop useless expression from sched_init()

Message ID 62813c68d43f7a9e1cf961710b6e1f4e698c7e4c.1490268634.git.viresh.kumar@linaro.org
State New
Headers show
Series sched: Minor cleanups | expand

Commit Message

Viresh Kumar March 23, 2017, 11:35 a.m. UTC
'ptr' is never used after setting 'rt_rq' and there is no need to update
it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.12.0.432.g71c3a4f4ba37
diff mbox series

Patch

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 6d6cad9a46af..bd33a05d038b 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5992,7 +5992,6 @@  void __init sched_init(void)
 		ptr += nr_cpu_ids * sizeof(void **);
 
 		root_task_group.rt_rq = (struct rt_rq **)ptr;
-		ptr += nr_cpu_ids * sizeof(void **);
 
 #endif /* CONFIG_RT_GROUP_SCHED */
 	}