ath6kl: Avoid two memset to clear src and desr mac addr variable memory in ath6kl_wmi...
authorRaja Mani <rmani@qca.qualcomm.com>
Tue, 19 Jul 2011 13:57:32 +0000 (19:27 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Aug 2011 16:45:21 +0000 (19:45 +0300)
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c

index a52d7d201fbd95435476d863fc6d38f5211b129f..6e4febf2e229b172f8dbe65a8429e0ec24f591e1 100644 (file)
@@ -317,9 +317,8 @@ int ath6kl_wmi_dot11_hdr_remove(struct wmi *wmi, struct sk_buff *skb)
        datap = skb->data;
        llc_hdr = (struct ath6kl_llc_snap_hdr *)(datap);
 
+       memset(&eth_hdr, 0, sizeof(eth_hdr));
        eth_hdr.h_proto = llc_hdr->eth_type;
-       memset(eth_hdr.h_dest, 0, sizeof(eth_hdr.h_dest));
-       memset(eth_hdr.h_source, 0, sizeof(eth_hdr.h_source));
 
        switch ((le16_to_cpu(wh.frame_control)) &
                (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) {