staging: csr: inet.c: single statement if blocks doesn't need braces
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 1 Nov 2012 06:24:35 +0000 (02:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 15:48:55 +0000 (08:48 -0700)
remove braces to single statement if blocks

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/inet.c

index b4acb54ecc621a9a8af1fc886422375bf9732930..85062061757166489e34407f3405f5cded4ffa9c 100644 (file)
@@ -93,14 +93,12 @@ static struct notifier_block uf_inetaddr_notifier = {
 
 void uf_register_inet_notifier(void)
 {
-    if (atomic_inc_return(&inet_notif_refs) == 1) {
+    if (atomic_inc_return(&inet_notif_refs) == 1)
         register_inetaddr_notifier(&uf_inetaddr_notifier);
-    }
 }
 
 void uf_unregister_inet_notifier(void)
 {
-    if (atomic_dec_return(&inet_notif_refs) == 0) {
+    if (atomic_dec_return(&inet_notif_refs) == 0)
         unregister_inetaddr_notifier(&uf_inetaddr_notifier);
-    }
 }