]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: Remove initialization of static variables
authorEva Rachel Retuya <eraretuya@gmail.com>
Mon, 15 Feb 2016 05:34:17 +0000 (13:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Feb 2016 02:24:07 +0000 (18:24 -0800)
Address the following checkpatch errors:
* ERROR: do not initialise statics to false
* ERROR: do not initialise statics to 0x00

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wlan.c

index 81a2ee9d7c323fd5bc228ad6444635fc6ee2d704..d4705b77a5afa8a6c17c4c0bc58ee09cfdcee1f6 100644 (file)
@@ -157,7 +157,7 @@ static u8 wlan_channel = INVALID_CHANNEL;
 static u8 curr_channel;
 static u8 p2p_oui[] = {0x50, 0x6f, 0x9A, 0x09};
 static u8 p2p_local_random = 0x01;
-static u8 p2p_recv_random = 0x00;
+static u8 p2p_recv_random;
 static u8 p2p_vendor_spec[] = {0xdd, 0x05, 0x00, 0x08, 0x40, 0x03};
 static bool wilc_ie;
 
index a396ac92a6500c5ce9a87b7cb74b78e247557e9c..ef65e8ef4b49de165df7d0227a2e42169ba59947 100644 (file)
@@ -325,7 +325,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)
 {