]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: android: Remove unnecessary braces
authorHema Prathaban <hemaklnce@gmail.com>
Wed, 8 May 2013 18:57:09 +0000 (00:27 +0530)
committerGreg 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

index 3893a35747698603cce0fe62ee7dcc1d1c333352..953a7a7d6843f706b2f15b5e5609d05f136a3e99 100644 (file)
@@ -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);
 }