From: Chaehyun Lim Date: Sun, 20 Sep 2015 06:51:22 +0000 (+0900) Subject: staging: wilc1000: remove braces for single statement blocks X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f1fe9c435d048cba8dcb4f0515f016722e246f73;p=deliverable%2Flinux.git staging: wilc1000: remove braces for single statement blocks 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 7aff04a1eb08..f0bbd903e176 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -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; }