]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: remove braces for single statement blocks
authorChaehyun Lim <chaehyun.lim@gmail.com>
Sun, 20 Sep 2015 06:51:22 +0000 (15:51 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 02:04:14 +0000 (19:04 -0700)
This patch removes braces for single if statement blocks found by
checkpatch.pl
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 7aff04a1eb08aca4ffa01cfbd8e14a58ffd99025..f0bbd903e176f8134ef42bed927c20257b0cb8a4 100644 (file)
@@ -3627,9 +3627,9 @@ int WILC_WFI_InitHostInt(struct net_device *net)
 
        sema_init(&(priv->hSemScanReq), 1);
        s32Error = host_int_init(&priv->hWILCWFIDrv);
-       if (s32Error) {
+       if (s32Error)
                PRINT_ER("Error while initializing hostinterface\n");
-       }
+
        return s32Error;
 }
 
@@ -3667,9 +3667,9 @@ int WILC_WFI_DeInitHostInt(struct net_device *net)
        }
        #endif
 
-       if (s32Error) {
+       if (s32Error)
                PRINT_ER("Error while deintializing host interface\n");
-       }
+
        return s32Error;
 }