Skip to content

Commit 585f8b2

Browse files
Martin Gumbrechtgregkh
authored andcommitted
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: 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>
1 parent 492e7e2 commit 585f8b2

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎drivers/staging/bcm/Queue.h‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,23 @@
77

88

99
#define ENQUEUEPACKET(_Head, _Tail,_Packet) \
10-
do \
11-
{ \
10+
do { \
1211
if (!_Head) { \
1312
_Head = _Packet; \
14-
} \
13+
} \
1514
else { \
1615
(_Tail)->next = _Packet; \
1716
} \
1817
(_Packet)->next = NULL; \
1918
_Tail = _Packet; \
2019
}while(0)
2120
#define DEQUEUEPACKET(Head, Tail ) \
22-
do \
23-
{ if(Head) \
24-
{ \
21+
do { \
22+
if (Head) { \
2523
if (!Head->next) { \
2624
Tail = NULL; \
2725
} \
2826
Head = Head->next; \
29-
} \
30-
}while(0)
27+
} \
28+
} while (0)
3129
#endif /* __QUEUE_H__ */

0 commit comments

Comments
 (0)