aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt73usb.c
diff options
context:
space:
mode:
authorIvo van Doorn <IvDoorn@gmail.com>2008-01-24 03:48:03 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:03 -0500
commit4bd7c452a468af30bb3c4d9c3adcdaf3f3c6048c (patch)
tree87df588e208a8118c6aba89c85bddef2d0ed79c9 /drivers/net/wireless/rt2x00/rt73usb.c
parent2676c94d4e5994f92e57fa3ea680f1d652049d03 (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/rt73usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 0cc815000d62..d89db266757c 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -1203,7 +1203,7 @@ static int rt73usb_set_device_state(struct rt2x00_dev *rt2x00dev,
1203 * TX descriptor initialization 1203 * TX descriptor initialization
1204 */ 1204 */
1205static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, 1205static void rt73usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1206 struct data_desc *txd, 1206 __le32 *txd,
1207 struct txdata_entry_desc *desc, 1207 struct txdata_entry_desc *desc,
1208 struct ieee80211_hdr *ieee80211hdr, 1208 struct ieee80211_hdr *ieee80211hdr,
1209 unsigned int length, 1209 unsigned int length,
@@ -1350,7 +1350,7 @@ static int rt73usb_agc_to_rssi(struct rt2x00_dev *rt2x00dev, int rxd_w1)
1350static void rt73usb_fill_rxdone(struct data_entry *entry, 1350static void rt73usb_fill_rxdone(struct data_entry *entry,
1351 struct rxdata_entry_desc *desc) 1351 struct rxdata_entry_desc *desc)
1352{ 1352{
1353 struct data_desc *rxd = (struct data_desc *)entry->skb->data; 1353 __le32 *rxd = (__le32 *)entry->skb->data;
1354 u32 word0; 1354 u32 word0;
1355 u32 word1; 1355 u32 word1;
1356 1356
@@ -1953,7 +1953,7 @@ static int rt73usb_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb,
1953 skb_push(skb, TXD_DESC_SIZE); 1953 skb_push(skb, TXD_DESC_SIZE);
1954 memset(skb->data, 0, TXD_DESC_SIZE); 1954 memset(skb->data, 0, TXD_DESC_SIZE);
1955 1955
1956 rt2x00lib_write_tx_desc(rt2x00dev, (struct data_desc *)skb->data, 1956 rt2x00lib_write_tx_desc(rt2x00dev, (__le32 *)skb->data,
1957 (struct ieee80211_hdr *)(skb->data + 1957 (struct ieee80211_hdr *)(skb->data +
1958 TXD_DESC_SIZE), 1958 TXD_DESC_SIZE),
1959 skb->len - TXD_DESC_SIZE, control); 1959 skb->len - TXD_DESC_SIZE, control);