From: Johnny Kim Date: Wed, 10 Jun 2015 08:06:47 +0000 (+0900) Subject: staging: wilc1000: remove uninitialized warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=842f1d71f6a00aa3d0a6fa277585cd7713122e3f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: wilc1000: remove uninitialized warnings This patch is for the initialization of the local variables. Signed-off-by: Johnny Kim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 3956c701c689..e92ba59382ef 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -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) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 61f1f2010645..5844eba90b91 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -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;