From: Hema Prathaban Date: Wed, 8 May 2013 18:57:09 +0000 (+0530) Subject: staging: android: Remove unnecessary braces X-Git-Tag: MMI-PSA29.97-13-9~14152^2~832 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d03f6bbaa42c2c5466350718f804537384902d5d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: android: Remove unnecessary braces Fixes the following checkpatch warning: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Hema Prathaban Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 3893a3574769..953a7a7d6843 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); }