diff options
| author | 2014-06-20 17:38:01 +0200 | |
|---|---|---|
| committer | 2014-06-20 09:48:25 -0700 | |
| commit | 585f8b2cc03aa3789375596107e30b64fa035702 (patch) | |
| tree | 1262f59cf6c3dbd422f1705758cb87551f79d5fa | |
| parent | Staging: bcm: Queue.h: fix checkpatch errors: comments (diff) | |
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>
| -rw-r--r-- | drivers/staging/bcm/Queue.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/staging/bcm/Queue.h b/drivers/staging/bcm/Queue.h index ebc7222932f1..b6f8468e9d52 100644 --- a/drivers/staging/bcm/Queue.h +++ b/drivers/staging/bcm/Queue.h @@ -7,11 +7,10 @@ #define ENQUEUEPACKET(_Head, _Tail,_Packet) \ -do \ -{ \ +do { \ if (!_Head) { \ _Head = _Packet; \ - } \ + } \ else { \ (_Tail)->next = _Packet; \ } \ @@ -19,13 +18,12 @@ do \ _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__ */ |
