diff options
author | Tejun Heo <tj@kernel.org> | 2014-12-04 10:14:13 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-12-04 10:14:54 -0500 |
commit | 0479c8c54983765085536c9463591548b45ad0a1 (patch) | |
tree | f4c2a68e85d582ff90e36c0e2a99d43feb63ca10 /kernel | |
parent | cac7f2429872d3733dc3f9915857b1691da2eb2f (diff) | |
download | linux-0479c8c54983765085536c9463591548b45ad0a1.tar.bz2 |
workqueue: cosmetic update in rescuer_thread()
rescuer_thread() caches &rescuer->scheduled in a local variable
scheduled for convenience. There's one WARN_ON_ONCE() which was using
&rescuer->scheduled directly. Replace it with the local variable.
This patch causes no functional difference.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 09b685daee3d..5fcd8179e681 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -2248,7 +2248,7 @@ repeat: * Slurp in all works issued via this workqueue and * process'em. */ - WARN_ON_ONCE(!list_empty(&rescuer->scheduled)); + WARN_ON_ONCE(!list_empty(scheduled)); list_for_each_entry_safe(work, n, &pool->worklist, entry) if (get_work_pwq(work) == pwq) move_linked_works(work, scheduled, &n); |