Commit 585f8b2c authored by Martin Gumbrecht's avatar Martin Gumbrecht Committed by Greg Kroah-Hartman

Staging: bcm: Queue.h: fix checkpatch errors: brackets

This patch improves coding style in Queue.h:
Brackets according to the coding guideline
Signed-off-by: default avatarMartin Gumbrecht <martin.gumbrecht@googlemail.com>
Signed-off-by: default avatarChristian Bay <christian.bay@studium.fau.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 492e7e2f
...@@ -7,11 +7,10 @@ ...@@ -7,11 +7,10 @@
#define ENQUEUEPACKET(_Head, _Tail,_Packet) \ #define ENQUEUEPACKET(_Head, _Tail,_Packet) \
do \ do { \
{ \
if (!_Head) { \ if (!_Head) { \
_Head = _Packet; \ _Head = _Packet; \
} \ } \
else { \ else { \
(_Tail)->next = _Packet; \ (_Tail)->next = _Packet; \
} \ } \
...@@ -19,13 +18,12 @@ do \ ...@@ -19,13 +18,12 @@ do \
_Tail = _Packet; \ _Tail = _Packet; \
}while(0) }while(0)
#define DEQUEUEPACKET(Head, Tail ) \ #define DEQUEUEPACKET(Head, Tail ) \
do \ do { \
{ if(Head) \ if (Head) { \
{ \
if (!Head->next) { \ if (!Head->next) { \
Tail = NULL; \ Tail = NULL; \
} \ } \
Head = Head->next; \ Head = Head->next; \
} \ } \
}while(0) } while (0)
#endif /* __QUEUE_H__ */ #endif /* __QUEUE_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment