From: Tejun Heo Date: Thu, 4 Dec 2014 15:14:13 +0000 (-0500) Subject: workqueue: cosmetic update in rescuer_thread() X-Git-Tag: v4.14-rc1~6329^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0479c8c54983765085536c9463591548b45ad0a1;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 09b685d..5fcd817 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);