diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2008-01-24 03:48:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:03 -0500 |
commit | 4bd7c452a468af30bb3c4d9c3adcdaf3f3c6048c (patch) | |
tree | 87df588e208a8118c6aba89c85bddef2d0ed79c9 /drivers/net/wireless/rt2x00/rt2x00pci.c | |
parent | 2676c94d4e5994f92e57fa3ea680f1d652049d03 (diff) |
rt2x00: Remove data_desc structure
Coverty indicated that data_desc with a single
element array is bad coding style. This removes
the structure and forces everybody to use __le32.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c index 04663eb3195..fa85771cbf4 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.c +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c | |||
@@ -80,7 +80,7 @@ int rt2x00pci_write_tx_data(struct rt2x00_dev *rt2x00dev, | |||
80 | { | 80 | { |
81 | struct ieee80211_hdr *ieee80211hdr = (struct ieee80211_hdr *)skb->data; | 81 | struct ieee80211_hdr *ieee80211hdr = (struct ieee80211_hdr *)skb->data; |
82 | struct data_entry *entry = rt2x00_get_data_entry(ring); | 82 | struct data_entry *entry = rt2x00_get_data_entry(ring); |
83 | struct data_desc *txd = entry->priv; | 83 | __le32 *txd = entry->priv; |
84 | u32 word; | 84 | u32 word; |
85 | 85 | ||
86 | if (rt2x00_ring_full(ring)) { | 86 | if (rt2x00_ring_full(ring)) { |
@@ -122,11 +122,11 @@ void rt2x00pci_rxdone(struct rt2x00_dev *rt2x00dev) | |||
122 | { | 122 | { |
123 | struct data_ring *ring = rt2x00dev->rx; | 123 | struct data_ring *ring = rt2x00dev->rx; |
124 | struct data_entry *entry; | 124 | struct data_entry *entry; |
125 | struct data_desc *rxd; | ||
126 | struct sk_buff *skb; | 125 | struct sk_buff *skb; |
127 | struct ieee80211_hdr *hdr; | 126 | struct ieee80211_hdr *hdr; |
128 | struct rxdata_entry_desc desc; | 127 | struct rxdata_entry_desc desc; |
129 | int header_size; | 128 | int header_size; |
129 | __le32 *rxd; | ||
130 | int align; | 130 | int align; |
131 | u32 word; | 131 | u32 word; |
132 | 132 | ||