From: Raja Mani Date: Tue, 19 Jul 2011 13:57:32 +0000 (+0530) Subject: ath6kl: Avoid two memset to clear src and desr mac addr variable memory in ath6kl_wmi... X-Git-Tag: MMI-PSA29.97-13-9~18194^2~254^2~327^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8790cbaea789467cbdc4460ff2b4a2eda413e64;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath6kl: Avoid two memset to clear src and desr mac addr variable memory in ath6kl_wmi_dot11_hdr_remove() Signed-off-by: Raja Mani Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index a52d7d201fbd..6e4febf2e229 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -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(ð_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)) {