Commit 5078ed50 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

zd1211rw: fix sparse warnings

This silences sparse when run on zd1211rw.
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1955fd0b
...@@ -360,11 +360,14 @@ void zd_mac_tx_failed(struct ieee80211_hw *hw) ...@@ -360,11 +360,14 @@ void zd_mac_tx_failed(struct ieee80211_hw *hw)
{ {
struct sk_buff_head *q = &zd_hw_mac(hw)->ack_wait_queue; struct sk_buff_head *q = &zd_hw_mac(hw)->ack_wait_queue;
struct sk_buff *skb; struct sk_buff *skb;
struct ieee80211_tx_status status = {{0}}; struct ieee80211_tx_status status;
skb = skb_dequeue(q); skb = skb_dequeue(q);
if (skb == NULL) if (skb == NULL)
return; return;
memset(&status, 0, sizeof(status));
tx_status(hw, skb, &status, 0); tx_status(hw, skb, &status, 0);
} }
...@@ -389,7 +392,8 @@ void zd_mac_tx_to_dev(struct sk_buff *skb, int error) ...@@ -389,7 +392,8 @@ void zd_mac_tx_to_dev(struct sk_buff *skb, int error)
if (unlikely(error || if (unlikely(error ||
(cb->control->flags & IEEE80211_TXCTL_NO_ACK))) (cb->control->flags & IEEE80211_TXCTL_NO_ACK)))
{ {
struct ieee80211_tx_status status = {{0}}; struct ieee80211_tx_status status;
memset(&status, 0, sizeof(status));
tx_status(hw, skb, &status, !error); tx_status(hw, skb, &status, !error);
} else { } else {
struct sk_buff_head *q = struct sk_buff_head *q =
...@@ -603,7 +607,9 @@ static int filter_ack(struct ieee80211_hw *hw, struct ieee80211_hdr *rx_hdr, ...@@ -603,7 +607,9 @@ static int filter_ack(struct ieee80211_hw *hw, struct ieee80211_hdr *rx_hdr,
tx_hdr = (struct ieee80211_hdr *)skb->data; tx_hdr = (struct ieee80211_hdr *)skb->data;
if (likely(!compare_ether_addr(tx_hdr->addr2, rx_hdr->addr1))) if (likely(!compare_ether_addr(tx_hdr->addr2, rx_hdr->addr1)))
{ {
struct ieee80211_tx_status status = {{0}}; struct ieee80211_tx_status status;
memset(&status, 0, sizeof(status));
status.flags = IEEE80211_TX_STATUS_ACK; status.flags = IEEE80211_TX_STATUS_ACK;
status.ack_signal = stats->ssi; status.ack_signal = stats->ssi;
__skb_unlink(skb, q); __skb_unlink(skb, q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment