diff options
author | Olof Johansson <[email protected]> | 2018-11-16 15:08:00 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-11-18 10:15:09 -0800 |
commit | 8fcb2312d1e3300e81aa871aad00d4c038cfc184 (patch) | |
tree | 06c7bc21a364b96c44f27345fc64b4da91b19e41 /tools/perf/scripts/python/futex-contention.py | |
parent | ca0246bb97c23da9d267c2107c07fb77e38205c9 (diff) |
kernel/sched/psi.c: simplify cgroup_move_task()
The existing code triggered an invalid warning about 'rq' possibly being
used uninitialized. Instead of doing the silly warning suppression by
initializa it to NULL, refactor the code to bail out early instead.
Warning was:
kernel/sched/psi.c: In function `cgroup_move_task':
kernel/sched/psi.c:639:13: warning: `rq' may be used uninitialized in this function [-Wmaybe-uninitialized]
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 2ce7135adc9ad ("psi: cgroup support")
Signed-off-by: Olof Johansson <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions