* [PATCH] staging: android: sync_debug: Fixed braces related coding style issue
@ 2016-01-24 10:21 Tapan Prakash T
2016-02-07 22:56 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Tapan Prakash T @ 2016-01-24 10:21 UTC (permalink / raw)
To: gregkh; +Cc: devel, linux-kernel, Tapan Prakash T
This patch fixes checkpatch.pl warning in file sync_debug
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Tapan Prakash T <tapanprakasht@gmail.com>
---
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) {
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: android: sync_debug: Fixed braces related coding style issue
2016-01-24 10:21 [PATCH] staging: android: sync_debug: Fixed braces related coding style issue Tapan Prakash T
@ 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: Tapan Prakash T; +Cc: devel, linux-kernel
On Sun, Jan 24, 2016 at 03:51:32PM +0530, Tapan Prakash T wrote:
> This patch fixes checkpatch.pl warning in file sync_debug
> WARNING: braces {} are not necessary for single statement blocks
>
> Signed-off-by: Tapan Prakash T <tapanprakasht@gmail.com>
> ---
> 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) {
> --
> 1.9.1
Someone sent this fix in before you, sorry.
^ 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-24 10:21 [PATCH] staging: android: sync_debug: Fixed braces related coding style issue Tapan Prakash T
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).