workqueue.h: remove loops of single statement macros
authorValentin Rothberg <valentinrothberg@gmail.com>
Tue, 6 Jan 2015 16:29:29 +0000 (17:29 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 6 Jan 2015 23:16:30 +0000 (18:16 -0500)
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>
include/linux/workqueue.h

index b996e6c..74db135 100644 (file)
@@ -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 {                                                            \