Staging: bcm: Queue.h: fix checkpatch errors: whitespaces
authorMartin Gumbrecht <martin.gumbrecht@googlemail.com>
Fri, 20 Jun 2014 15:38:02 +0000 (17:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 16:48:25 +0000 (09:48 -0700)
This patch improves coding style in Queue.h
Whitespaces 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>
drivers/staging/bcm/Queue.h

index b6f8468e9d52429f1bcbb0d41f9ff28d46cf024e..460c0aee67f6a41eaa9a1f946521d278c83813f3 100644 (file)
@@ -6,24 +6,24 @@
 
 
 
-#define ENQUEUEPACKET(_Head, _Tail,_Packet)    \
+#define ENQUEUEPACKET(_Head, _Tail, _Packet)   \
 do {                                           \
-    if (!_Head) {                           \
-               _Head = _Packet;                \
-       }                                       \
-       else {                                  \
-               (_Tail)->next = _Packet;        \
-        }                                       \
-       (_Packet)->next = NULL;                 \
-    _Tail = _Packet;                        \
-}while(0)
-#define DEQUEUEPACKET(Head, Tail )             \
+       if (!_Head) {                           \
+               _Head = _Packet;                \
+       }                                       \
+       else {                                  \
+               (_Tail)->next = _Packet;        \
+       }                                       \
+       (_Packet)->next = NULL;                 \
+       _Tail = _Packet;                        \
+} while (0)
+#define DEQUEUEPACKET(Head, Tail             \
 do {                                           \
        if (Head) {                             \
-        if (!Head->next) {                      \
-               Tail = NULL;                    \
-        }                                       \
-        Head = Head->next;                      \
-       }                \
+               if (!Head->next) {              \
+                       Tail = NULL;            \
+               }                               \
+               Head = Head->next;              \
+       }                                       \
 } while (0)
 #endif /* __QUEUE_H__ */