diff options
author | Hema Prathaban <hemaklnce@gmail.com> | 2013-05-08 18:57:09 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-12 15:36:01 (GMT) |
commit | d03f6bbaa42c2c5466350718f804537384902d5d (patch) | |
tree | 266a9d51f79c6f71e3d434610e7f25e5674b9d78 /drivers/staging/android/sync.c | |
parent | f827c165b0e6ba1898317ae9ebae87855d386a2c (diff) | |
download | linux-fsl-qoriq-d03f6bbaa42c2c5466350718f804537384902d5d.tar.xz |
staging: android: Remove unnecessary braces
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>
Diffstat (limited to 'drivers/staging/android/sync.c')
-rw-r--r-- | drivers/staging/android/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 3893a35..953a7a7 100644 --- 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); } |