This patch improves coding style in Queue.h:
Brackets according to the coding guideline
Signed-off-by: Martin Gumbrecht <martin.gumbrecht@googlemail.com>
Signed-off-by: Christian Bay <christian.bay@studium.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
#define ENQUEUEPACKET(_Head, _Tail,_Packet) \
-do \
-{ \
+do { \
if (!_Head) { \
_Head = _Packet; \
- } \
+ } \
else { \
(_Tail)->next = _Packet; \
} \
_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__ */