[PATCH v2 4/7] Staging: bcm: Queue.h: fix checkpatch errors: brackets
From: Martin Gumbrecht
Date: Fri Jun 20 2014 - 11:48:32 EST
This patch improves coding style in Queue.h:
Brackets according to the coding guideline
Signed-off-by: Martin Gumbrecht <martin.gumbrecht@xxxxxxxxxxxxxx>
Signed-off-by: Christian Bay <christian.bay@xxxxxxxxxxxxxx>
---
drivers/staging/bcm/Queue.h | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/bcm/Queue.h b/drivers/staging/bcm/Queue.h
index ebc7222..b6f8468e 100644
--- a/drivers/staging/bcm/Queue.h
+++ b/drivers/staging/bcm/Queue.h
@@ -7,11 +7,10 @@
#define ENQUEUEPACKET(_Head, _Tail,_Packet) \
-do \
-{ \
+do { \
if (!_Head) { \
_Head = _Packet; \
- } \
+ } \
else { \
(_Tail)->next = _Packet; \
} \
@@ -19,13 +18,12 @@ do \
_Tail = _Packet; \
}while(0)
#define DEQUEUEPACKET(Head, Tail ) \
-do \
-{ if(Head) \
- { \
+do { \
+ if (Head) { \
if (!Head->next) { \
Tail = NULL; \
} \
Head = Head->next; \
- } \
-}while(0)
+ } \
+} while (0)
#endif /* __QUEUE_H__ */
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/