Repository navigation
Commit a1dc044
sched/core: Silence a warning in sched_init()
Compiling a kernel with both FAIR_GROUP_SCHED=n and RT_GROUP_SCHED=n
will generate a compiler warning:
kernel/sched/core.c: In function 'sched_init':
kernel/sched/core.c:5906:32: warning: variable 'ptr' set but not used
It is unnecessary to have both "alloc_size" and "ptr", so just combine
them.
Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: valentin.schneider@arm.com
Link: https://lkml.kernel.org/r/20190720012319.884-1-cai@lca.pw
Signed-off-by: Ingo Molnar <mingo@kernel.org>1 parent a07db5c commit a1dc044
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6430 | 6430 | | |
6431 | 6431 | | |
6432 | 6432 | | |
6433 | | - | |
| 6433 | + | |
6434 | 6434 | | |
6435 | 6435 | | |
6436 | 6436 | | |
6437 | 6437 | | |
6438 | 6438 | | |
6439 | | - | |
| 6439 | + | |
6440 | 6440 | | |
6441 | 6441 | | |
6442 | | - | |
| 6442 | + | |
6443 | 6443 | | |
6444 | | - | |
6445 | | - | |
| 6444 | + | |
| 6445 | + | |
6446 | 6446 | | |
6447 | 6447 | | |
6448 | 6448 | | |
| |||
0 commit comments