From: Janani Ravichandran Date: Sun, 14 Feb 2016 19:47:13 +0000 (-0500) Subject: staging: wilc1000: linux_mon.c: Remove unneeded braces X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c611d48e65e25af2dc0176e9ac135116095ed03d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) {