mwifiex: remove needless current_bssid variable
authorAvinash Patil <patila@marvell.com>
Thu, 17 Jul 2014 18:48:47 +0000 (11:48 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Jul 2014 17:45:26 +0000 (13:45 -0400)
This local variable is not used anywhere in function.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/join.c

index 0b977ea1cddb599b9493627269d16402b9470a24..8d6c25908b6d012fc9f2ef3d9f9211fd5f09b862 100644 (file)
@@ -1288,8 +1288,6 @@ done:
 int mwifiex_associate(struct mwifiex_private *priv,
                      struct mwifiex_bssdescriptor *bss_desc)
 {
-       u8 current_bssid[ETH_ALEN];
-
        /* Return error if the adapter is not STA role or table entry
         * is not marked as infra.
         */
@@ -1304,10 +1302,6 @@ int mwifiex_associate(struct mwifiex_private *priv,
        else
                mwifiex_set_ba_params(priv);
 
-       memcpy(&current_bssid,
-              &priv->curr_bss_params.bss_descriptor.mac_address,
-              sizeof(current_bssid));
-
        /* Clear any past association response stored for application
           retrieval */
        priv->assoc_rsp_size = 0;