staging: wilc1000: Remove an error initialise statics to false
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
Signed-off-by Anchal Jain <[email protected]>
--- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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;void wilc_enable_tcp_ack_filter (bool value) {
Signature · 1 line
1.9.1
Quoted 13 lines · Anchal Jain
Remove the static variable enable initialization.
because the default value of static is FALSESigned-off-by Anchal Jain <[email protected]>--- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/wilc1000/wilc_wlan.c +0
-0
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