staging: wilc1000: remove uninitialized warnings
authorJohnny Kim <johnny.kim@atmel.com>
Wed, 10 Jun 2015 08:06:47 +0000 (17:06 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 00:45:34 +0000 (17:45 -0700)
This patch is for the initialization of the local variables.

Signed-off-by: Johnny Kim <johnny.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 3956c701c689c861a867d31968a4fba8dc11cf80..e92ba59382efa5f4618e4d8e02c1a59f50202b4d 100644 (file)
@@ -2778,7 +2778,7 @@ late_initcall(init_wilc_driver);
 static void __exit exit_wilc_driver(void)
 {
        int i = 0;
-       perInterface_wlan_t *nic[NUM_CONCURRENT_IFC];
+       perInterface_wlan_t *nic[NUM_CONCURRENT_IFC] = {NULL,};
        #define CLOSE_TIMEOUT (12 * 1000)
 
        if ((g_linux_wlan != NULL) && (((g_linux_wlan->strInterfaceInfo[0].wilc_netdev) != NULL)
index 61f1f20106459cdce50f7e278dfa5fd28c8242f8..5844eba90b9146e651c31c7e4a13fe5fedf1c583 100644 (file)
@@ -829,9 +829,9 @@ static int WILC_WFI_CfgConnect(struct wiphy *wiphy, struct net_device *dev,
        WILC_Uint32 i;
        u8 u8security = NO_ENCRYPT;
        AUTHTYPE_T tenuAuth_type = ANY;
-       WILC_Char *pcgroup_encrypt_val;
-       WILC_Char *pccipher_group;
-       WILC_Char *pcwpa_version;
+       WILC_Char *pcgroup_encrypt_val = NULL;
+       WILC_Char *pccipher_group = NULL;
+       WILC_Char *pcwpa_version = NULL;
 
        struct WILC_WFI_priv *priv;
        tstrWILC_WFIDrv *pstrWFIDrv;