Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1544094 > unrolled thread
| Started by | Aaron Moore <aaron@atamisk.net> |
|---|---|
| First post | 2016-12-18 07:00 +0100 |
| Last post | 2016-12-19 23:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] staging: vc04_services: Fix bracing on single statement blocks Aaron Moore <aaron@atamisk.net> - 2016-12-18 07:00 +0100
Re: [PATCH] staging: vc04_services: Fix bracing on single statement blocks Eric Anholt <eric@anholt.net> - 2016-12-19 23:40 +0100
| From | Aaron Moore <aaron@atamisk.net> |
|---|---|
| Date | 2016-12-18 07:00 +0100 |
| Subject | [PATCH] staging: vc04_services: Fix bracing on single statement blocks |
| Message-ID | <sPCFP-3yV-3@gated-at.bofh.it> |
Fix coding style issue caught by checkpatch.pl relating to braces on
single statement blocks. This issue was corrected in 3 locations.
Signed-off-by: Aaron Moore <aaron@atamisk.net>
---
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
index f76f4d7..e0ba0ed 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c
@@ -80,9 +80,8 @@ void vchiu_queue_push(VCHIU_QUEUE_T *queue, VCHIQ_HEADER_T *header)
return;
while (queue->write == queue->read + queue->size) {
- if (down_interruptible(&queue->pop) != 0) {
+ if (down_interruptible(&queue->pop) != 0)
flush_signals(current);
- }
}
/*
@@ -107,9 +106,8 @@ void vchiu_queue_push(VCHIU_QUEUE_T *queue, VCHIQ_HEADER_T *header)
VCHIQ_HEADER_T *vchiu_queue_peek(VCHIU_QUEUE_T *queue)
{
while (queue->write == queue->read) {
- if (down_interruptible(&queue->push) != 0) {
+ if (down_interruptible(&queue->push) != 0)
flush_signals(current);
- }
}
up(&queue->push); // We haven't removed anything from the queue.
@@ -128,9 +126,8 @@ VCHIQ_HEADER_T *vchiu_queue_pop(VCHIU_QUEUE_T *queue)
VCHIQ_HEADER_T *header;
while (queue->write == queue->read) {
- if (down_interruptible(&queue->push) != 0) {
+ if (down_interruptible(&queue->push) != 0)
flush_signals(current);
- }
}
/*
--
2.10.2
[toc] | [next] | [standalone]
| From | Eric Anholt <eric@anholt.net> |
|---|---|
| Date | 2016-12-19 23:40 +0100 |
| Subject | Re: [PATCH] staging: vc04_services: Fix bracing on single statement blocks |
| Message-ID | <sQeL8-5pk-5@gated-at.bofh.it> |
| In reply to | #1544094 |
[Multipart message — attachments visible in raw view] — view raw
Aaron Moore <aaron@atamisk.net> writes: > Fix coding style issue caught by checkpatch.pl relating to braces on > single statement blocks. This issue was corrected in 3 locations. > > Signed-off-by: Aaron Moore <aaron@atamisk.net> Reviewed-by: Eric Anholt <eric@anholt.net>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web