staging: rtl8723au: collect_bss_info(): Don't memset() what we just kzalloc()'d
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:16:31 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:00:20 +0000 (14:00 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c

index 02180fc6650b111a7ca09a4ecc3887ebf07de712..14193b4319b52c7c817c0686da59722c4581d024 100644 (file)
@@ -4335,8 +4335,6 @@ static struct wlan_bssid_ex *collect_bss_info(struct rtw_adapter *padapter,
        memcpy(bssid->Ssid.ssid, p + 2, p[1]);
        bssid->Ssid.ssid_len = p[1];
 
-       memset(bssid->SupportedRates, 0, NDIS_802_11_LENGTH_RATES_EX);
-
        /* checking rate info... */
        i = 0;
        p = cfg80211_find_ie(WLAN_EID_SUPP_RATES, bssid->IEs + ie_offset,