Skip to contentSkip to conversation

workqueue.h: remove loops of single statement macros

PATCH Applied Valentin Rothberg 2 participants 2 messages Jan 6, 2015 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/linux/workqueue.h | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
include/linux/workqueue.h +2 -6
index b996e6cd..74db135 100644
@@ -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 {								\
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Valentin Rothberg

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.

Applied to wq/for-3.20.

Thanks.

Signature · 1 line
tejun