Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1312150 > unrolled thread

[PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces

Started byRobin Krahl <robin.krahl@ireas.org>
First post2016-01-19 12:40 +0100
Last post2016-01-19 12:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH RESEND] staging: android: sync_debug.c: remove unnecessary  braces Robin Krahl <robin.krahl@ireas.org> - 2016-01-19 12:40 +0100

#1312150 — [PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces

FromRobin Krahl <robin.krahl@ireas.org>
Date2016-01-19 12:40 +0100
Subject[PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces
Message-ID<qSCNJ-78i-33@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Remove unnecessary braces {} around a single statement within a for loop.
Indicated by checkpatch.

Signed-off-by: Robin Krahl <robin.krahl@ireas.org>
---
 drivers/staging/android/sync_debug.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/android/sync_debug.c b/drivers/staging/android/sync_debug.c
index f45d13c..02a1649 100644
--- a/drivers/staging/android/sync_debug.c
+++ b/drivers/staging/android/sync_debug.c
@@ -158,9 +158,8 @@ static void sync_print_fence(struct seq_file *s, struct sync_fence *fence)
 	seq_printf(s, "[%p] %s: %s\n", fence, fence->name,
 		   sync_status_str(atomic_read(&fence->status)));
 
-	for (i = 0; i < fence->num_fences; ++i) {
+	for (i = 0; i < fence->num_fences; ++i)
 		sync_print_pt(s, fence->cbs[i].sync_pt, true);
-	}
 
 	spin_lock_irqsave(&fence->wq.lock, flags);
 	list_for_each_entry(pos, &fence->wq.task_list, task_list) {
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web