projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492e7e2
)
Staging: bcm: Queue.h: fix checkpatch errors: brackets
author
Martin Gumbrecht
<
[email protected]
>
Fri, 20 Jun 2014 15:38:01 +0000
(17:38 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 20 Jun 2014 16:48:25 +0000
(09:48 -0700)
This patch improves coding style in Queue.h:
Brackets according to the coding guideline
Signed-off-by: Martin Gumbrecht <
[email protected]
>
Signed-off-by: Christian Bay <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/bcm/Queue.h
patch
|
blob
|
history
diff --git
a/drivers/staging/bcm/Queue.h
b/drivers/staging/bcm/Queue.h
index ebc7222932f1592b9696666050857ba3ddaa0a21..b6f8468e9d52429f1bcbb0d41f9ff28d46cf024e 100644
(file)
--- 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__ */