staging: wilc1000: linux_mon.c: Remove unneeded braces
PATCH v2 1/1 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 <[email protected]>
---
Changes since v1:
* Changed the term parentheses to braces in the subject and the commit description
drivers/staging/wilc1000/linux_mon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/wilc1000/linux_mon.c +1 -2
@@ -302,9 +302,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devistruct 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) {
Signature · 1 line
2.5.0