diff options
| author | Valentin Rothberg <valentinrothberg@gmail.com> | 2015-01-06 17:29:29 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-12-05 18:05:57 +0100 |
| commit | 24e3d0b0ff3af9a8a95cb0f32f18a0ac97f747c5 (patch) | |
| tree | ae6173a9934c8aa7d1bd2eb5e87ee80de1de0f1c /include/linux | |
| parent | c710e15ae6ee04b7af52a24a1fd1165ffecf7e4a (diff) | |
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')
| -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 412f40a14..8dc29a126 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -232,14 +232,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 { \ |
