diff options
author | Raja Mani <rmani@qca.qualcomm.com> | 2011-07-19 09:57:32 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:21 -0400 |
commit | c8790cbaea789467cbdc4460ff2b4a2eda413e64 (patch) | |
tree | 00b348627b5bb9f29a47d4aa6bc8fbfda590844f /drivers | |
parent | 5ba3ee48f2e913037520486f7492c88c517bf387 (diff) |
ath6kl: Avoid two memset to clear src and desr mac addr variable memory in ath6kl_wmi_dot11_hdr_remove()
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
317 | datap = skb->data; | 317 | datap = skb->data; |
318 | llc_hdr = (struct ath6kl_llc_snap_hdr *)(datap); | 318 | llc_hdr = (struct ath6kl_llc_snap_hdr *)(datap); |
319 | 319 | ||
320 | memset(ð_hdr, 0, sizeof(eth_hdr)); | ||
320 | eth_hdr.h_proto = llc_hdr->eth_type; | 321 | eth_hdr.h_proto = llc_hdr->eth_type; |
321 | memset(eth_hdr.h_dest, 0, sizeof(eth_hdr.h_dest)); | ||
322 | memset(eth_hdr.h_source, 0, sizeof(eth_hdr.h_source)); | ||
323 | 322 | ||
324 | switch ((le16_to_cpu(wh.frame_control)) & | 323 | switch ((le16_to_cpu(wh.frame_control)) & |
325 | (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { | 324 | (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { |