]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mwifiex: remove redundant nick_name variable
authorAvinash Patil <patila@marvell.com>
Wed, 28 Jan 2015 10:11:58 +0000 (15:41 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 29 Jan 2015 08:20:06 +0000 (10:20 +0200)
This is not used anywhere execpt initialization.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/main.c
drivers/net/wireless/mwifiex/main.h

index 9836df0eb1e7fe6aaa566499a0d41bf7956ffc33..99cd3604b3f30fd9e0debbc93c00978dacbd854e 100644 (file)
@@ -968,7 +968,6 @@ void mwifiex_init_priv_params(struct mwifiex_private *priv,
        /* Initialize private structure */
        priv->current_key_index = 0;
        priv->media_connected = false;
-       memset(&priv->nick_name, 0, sizeof(priv->nick_name));
        memset(priv->mgmt_ie, 0,
               sizeof(struct mwifiex_ie) * MAX_MGMT_IE_INDEX);
        priv->beacon_idx = MWIFIEX_AUTO_IDX_MASK;
index 55273eefb785567522379921ab050f4f87145e12..99792b885b79c97d149c6db82978ca94bd6e7eac 100644 (file)
@@ -553,7 +553,6 @@ struct mwifiex_private {
 #ifdef CONFIG_DEBUG_FS
        struct dentry *dfs_dev_dir;
 #endif
-       u8 nick_name[16];
        u16 current_key_index;
        struct semaphore async_sem;
        struct cfg80211_scan_request *scan_request;