[PATCH 1/9] staging: csr: inet.c: single statement if blocks doesn't need braces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



remove braces to single statement if blocks

Signed-off-by: Devendra Naga <devendra.aaru@xxxxxxxxx>
---
 drivers/staging/csr/inet.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/csr/inet.c b/drivers/staging/csr/inet.c
index b4acb54..8506206 100644
--- a/drivers/staging/csr/inet.c
+++ b/drivers/staging/csr/inet.c
@@ -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);
-    }
 }
-- 
1.7.10.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux