* [PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces
@ 2016-01-19 11:29 Robin Krahl
2016-02-07 22:56 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Robin Krahl @ 2016-01-19 11:29 UTC (permalink / raw)
To: gregkh; +Cc: Arve Hjønnevåg, Riley Andrews, devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
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
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces
2016-01-19 11:29 [PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces Robin Krahl
@ 2016-02-07 22:56 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2016-02-07 22:56 UTC (permalink / raw)
To: Robin Krahl; +Cc: devel, Arve Hjønnevåg, Riley Andrews, linux-kernel
On Tue, Jan 19, 2016 at 12:29:41PM +0100, Robin Krahl wrote:
> 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
>
Someone sent a fixed up patch before this one :(
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-07 22:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-19 11:29 [PATCH RESEND] staging: android: sync_debug.c: remove unnecessary braces Robin Krahl
2016-02-07 22:56 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).