From c611d48e65e25af2dc0176e9ac135116095ed03d Mon Sep 17 00:00:00 2001 From: Janani Ravichandran Date: Sun, 14 Feb 2016 14:47:13 -0500 Subject: [PATCH] staging: wilc1000: linux_mon.c: Remove unneeded braces Remove braces around single statement blocks in if conditions as they are not required. Signed-off-by: Janani Ravichandran Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/linux_mon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c index ba702b23f852..21f35d7bdd82 100644 --- a/drivers/staging/wilc1000/linux_mon.c +++ b/drivers/staging/wilc1000/linux_mon.c @@ -302,9 +302,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi struct WILC_WFI_mon_priv *priv; /*If monitor interface is already initialized, return it*/ - if (wilc_wfi_mon) { + if (wilc_wfi_mon) return wilc_wfi_mon; - } wilc_wfi_mon = alloc_etherdev(sizeof(struct WILC_WFI_mon_priv)); if (!wilc_wfi_mon) { -- 2.20.1