|
@@ -302,9 +302,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi
|
|
struct WILC_WFI_mon_priv *priv;
|
|
struct WILC_WFI_mon_priv *priv;
|
|
|
|
|
|
/*If monitor interface is already initialized, return it*/
|
|
/*If monitor interface is already initialized, return it*/
|
|
- if (wilc_wfi_mon) {
|
|
|
|
|
|
+ if (wilc_wfi_mon)
|
|
return wilc_wfi_mon;
|
|
return wilc_wfi_mon;
|
|
- }
|
|
|
|
|
|
|
|
wilc_wfi_mon = alloc_etherdev(sizeof(struct WILC_WFI_mon_priv));
|
|
wilc_wfi_mon = alloc_etherdev(sizeof(struct WILC_WFI_mon_priv));
|
|
if (!wilc_wfi_mon) {
|
|
if (!wilc_wfi_mon) {
|