diff options
author | Valentin Rothberg <valentinrothberg@gmail.com> | 2015-01-06 17:29:29 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-01-06 18:16:30 -0500 |
commit | 9da7dae94fb8adab5cc5f395640e30736a66e910 (patch) | |
tree | 50671ec1a0eb7394c164e0045b1a2f1e16889a60 /include/linux/workqueue.h | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) | |
download | op-kernel-dev-9da7dae94fb8adab5cc5f395640e30736a66e910.zip op-kernel-dev-9da7dae94fb8adab5cc5f395640e30736a66e910.tar.gz |
workqueue.h: remove loops of single statement macros
checkpatch.pl complained about two single statement macros in
do while (0) loops. The loops and the trailing semicolons are
now removed, which makes checkpatch happy and the two macros
consistent with the rest of the file.
Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r-- | include/linux/workqueue.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index b996e6cd..74db135 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -220,14 +220,10 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; } #endif #define INIT_WORK(_work, _func) \ - do { \ - __INIT_WORK((_work), (_func), 0); \ - } while (0) + __INIT_WORK((_work), (_func), 0) #define INIT_WORK_ONSTACK(_work, _func) \ - do { \ - __INIT_WORK((_work), (_func), 1); \ - } while (0) + __INIT_WORK((_work), (_func), 1) #define __INIT_DELAYED_WORK(_work, _func, _tflags) \ do { \ |