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

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

This patch improves coding style in Queue.h
Whitespaces 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 585f8b2c
......@@ -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__ */
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