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

p54: fix sparse warnings

This fixes a few sparse warnings in p54.
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e63e3fa7
...@@ -59,7 +59,7 @@ static struct ieee80211_channel p54_channels[] = { ...@@ -59,7 +59,7 @@ static struct ieee80211_channel p54_channels[] = {
{ .center_freq = 2484, .hw_value = 14, }, { .center_freq = 2484, .hw_value = 14, },
}; };
struct ieee80211_supported_band band_2GHz = { static struct ieee80211_supported_band band_2GHz = {
.channels = p54_channels, .channels = p54_channels,
.n_channels = ARRAY_SIZE(p54_channels), .n_channels = ARRAY_SIZE(p54_channels),
.bitrates = p54_rates, .bitrates = p54_rates,
...@@ -389,7 +389,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb) ...@@ -389,7 +389,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb)
while (entry != (struct sk_buff *)&priv->tx_queue) { while (entry != (struct sk_buff *)&priv->tx_queue) {
range = (struct memrecord *)&entry->cb; range = (struct memrecord *)&entry->cb;
if (range->start_addr == addr) { if (range->start_addr == addr) {
struct ieee80211_tx_status status = {{0}}; struct ieee80211_tx_status status;
struct p54_control_hdr *entry_hdr; struct p54_control_hdr *entry_hdr;
struct p54_tx_control_allocdata *entry_data; struct p54_tx_control_allocdata *entry_data;
int pad = 0; int pad = 0;
...@@ -405,6 +405,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb) ...@@ -405,6 +405,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb)
kfree_skb(entry); kfree_skb(entry);
break; break;
} }
memset(&status, 0, sizeof(status));
memcpy(&status.control, range->control, memcpy(&status.control, range->control,
sizeof(status.control)); sizeof(status.control));
kfree(range->control); kfree(range->control);
......
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