Skip to contentSkip to conversation

staging: wilc1000: Remove an error initialise statics to false

PATCH In review Anchal Jain 2 participants 2 messages Feb 15, 2016 – Feb 16, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: Remove an error initialise statics to false

Remove the static variable enable initialization.
because the default value of static is FALSE

---
 drivers/staging/wilc1000/wilc_wlan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/wilc_wlan.c +1 -1
index 45f70ab..21e79dc 100644
@@ -329,7 +329,7 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev)
 	return 1;
 }
 
-static bool enabled = false;
+static bool enabled;
 
 void wilc_enable_tcp_ack_filter(bool value)
 {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Anchal Jain

Remove the static variable enable initialization.
because the default value of static is FALSE

---
 drivers/staging/wilc1000/wilc_wlan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/wilc_wlan.c +0 -0
index 45f70ab..21e79dc 100644

drivers/staging/wilc1000/wilc_wlan.c static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev) · line 332

Quoted 5 lines
drivers/staging/wilc1000/wilc_wlan.c +1 -1
@@ -329,7 +329,7 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev)
 	return 1;
 }
 
-static bool enabled = false;
+static bool enabled;

This has already been done by:
d38f5ba48285 ("staging: wilc1000: Remove initialization of static variables")

regards
sudip