Skip to content

Commit

Permalink
ath6kl: Avoid two memset to clear src and desr mac addr variable memo…
Browse files Browse the repository at this point in the history
…ry in ath6kl_wmi_dot11_hdr_remove()

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Raja Mani authored and Kalle Valo committed Aug 9, 2011
1 parent 5ba3ee4 commit c8790cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ath/ath6kl/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c8790cb

Please sign in to comment.