OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f827c16
)
staging: android: Remove unnecessary braces
author
Hema Prathaban
<hemaklnce@gmail.com>
Wed, 8 May 2013 18:57:09 +0000
(
00:27
+0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 12 May 2013 15:36:01 +0000
(08:36 -0700)
Fixes the following checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Hema Prathaban <hemaklnce@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sync.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/sync.c
b/drivers/staging/android/sync.c
index
3893a35
..
953a7a7
100644
(file)
--- a/
drivers/staging/android/sync.c
+++ b/
drivers/staging/android/sync.c
@@
-125,9
+125,9
@@
static void sync_timeline_remove_pt(struct sync_pt *pt)
spin_unlock_irqrestore(&obj->active_list_lock, flags);
spin_lock_irqsave(&obj->child_list_lock, flags);
- if (!list_empty(&pt->child_list))
{
+ if (!list_empty(&pt->child_list))
list_del_init(&pt->child_list);
- }
+
spin_unlock_irqrestore(&obj->child_list_lock, flags);
}