Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1607389
| From | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/4] sched: core: drop useless expression from sched_init() |
| Date | 2017-03-23 12:40 +0100 |
| Message-ID | <to9fZ-1zG-23@gated-at.bofh.it> (permalink) |
| References | <to9fY-1zG-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
'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(-) 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 */ } -- 2.12.0.432.g71c3a4f4ba37
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] sched: Minor cleanups Viresh Kumar <viresh.kumar@linaro.org> - 2017-03-23 12:40 +0100 [PATCH 1/4] sched: topology: drop memset() from init_rootdomain() Viresh Kumar <viresh.kumar@linaro.org> - 2017-03-23 12:40 +0100 [PATCH 4/4] sched: core: drop useless expression from sched_init() Viresh Kumar <viresh.kumar@linaro.org> - 2017-03-23 12:40 +0100 [PATCH 3/4] sched: cpupri: don't re-initialize struct cpupri Viresh Kumar <viresh.kumar@linaro.org> - 2017-03-23 12:40 +0100 Re: [PATCH 0/4] sched: Minor cleanups Peter Zijlstra <peterz@infradead.org> - 2017-03-27 16:00 +0200
csiph-web