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/rt2400pci.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/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index f2d0febbec49..8889f6d18dce 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -600,7 +600,7 @@ static void rt2400pci_link_tuner(struct rt2x00_dev *rt2x00dev) | |||
600 | static void rt2400pci_init_rxring(struct rt2x00_dev *rt2x00dev) | 600 | static void rt2400pci_init_rxring(struct rt2x00_dev *rt2x00dev) |
601 | { | 601 | { |
602 | struct data_ring *ring = rt2x00dev->rx; | 602 | struct data_ring *ring = rt2x00dev->rx; |
603 | struct data_desc *rxd; | 603 | __le32 *rxd; |
604 | unsigned int i; | 604 | unsigned int i; |
605 | u32 word; | 605 | u32 word; |
606 | 606 | ||
@@ -630,7 +630,7 @@ static void rt2400pci_init_rxring(struct rt2x00_dev *rt2x00dev) | |||
630 | static void rt2400pci_init_txring(struct rt2x00_dev *rt2x00dev, const int queue) | 630 | static void rt2400pci_init_txring(struct rt2x00_dev *rt2x00dev, const int queue) |
631 | { | 631 | { |
632 | struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue); | 632 | struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue); |
633 | struct data_desc *txd; | 633 | __le32 *txd; |
634 | unsigned int i; | 634 | unsigned int i; |
635 | u32 word; | 635 | u32 word; |
636 | 636 | ||
@@ -1017,7 +1017,7 @@ static int rt2400pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
1017 | * TX descriptor initialization | 1017 | * TX descriptor initialization |
1018 | */ | 1018 | */ |
1019 | static void rt2400pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, | 1019 | static void rt2400pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, |
1020 | struct data_desc *txd, | 1020 | __le32 *txd, |
1021 | struct txdata_entry_desc *desc, | 1021 | struct txdata_entry_desc *desc, |
1022 | struct ieee80211_hdr *ieee80211hdr, | 1022 | struct ieee80211_hdr *ieee80211hdr, |
1023 | unsigned int length, | 1023 | unsigned int length, |
@@ -1117,7 +1117,7 @@ static void rt2400pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | |||
1117 | static void rt2400pci_fill_rxdone(struct data_entry *entry, | 1117 | static void rt2400pci_fill_rxdone(struct data_entry *entry, |
1118 | struct rxdata_entry_desc *desc) | 1118 | struct rxdata_entry_desc *desc) |
1119 | { | 1119 | { |
1120 | struct data_desc *rxd = entry->priv; | 1120 | __le32 *rxd = entry->priv; |
1121 | u32 word0; | 1121 | u32 word0; |
1122 | u32 word2; | 1122 | u32 word2; |
1123 | 1123 | ||
@@ -1147,7 +1147,7 @@ static void rt2400pci_txdone(struct rt2x00_dev *rt2x00dev, const int queue) | |||
1147 | { | 1147 | { |
1148 | struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue); | 1148 | struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue); |
1149 | struct data_entry *entry; | 1149 | struct data_entry *entry; |
1150 | struct data_desc *txd; | 1150 | __le32 *txd; |
1151 | u32 word; | 1151 | u32 word; |
1152 | int tx_status; | 1152 | int tx_status; |
1153 | int retry; | 1153 | int retry; |