staging: wilc1000: linux_mon.c: Remove unneeded braces
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Sun, 14 Feb 2016 19:47:13 +0000 (14:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:31:50 +0000 (16:31 -0800)
Remove braces around single statement blocks in if conditions as they
are not required.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c

index ba702b23f8524bb604ec97706c88e65a608ca836..21f35d7bdd8208ad642df6993a281551658a5ce3 100644 (file)
@@ -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) {