diff options
author | Samuel Ortiz <samuel.ortiz@intel.com> | 2009-01-23 16:45:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:33 -0500 |
commit | 59606ffa9146538b73bbe1ca1285321cd7474bc0 (patch) | |
tree | f54644b3c64b6f9734891547a6f670cbb3fb3ec5 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 77fecfb88f8ad64420e06a96f1bd3b38498bfb4f (diff) |
iwlwifi: make iwl_tx_queue->tfds void*
Instead of having both tfds and tfds39, we can just have a void *tfds.
It makes the tx_queue structure nicer, and the code cleaner. It also helps
with further TX queues management code merging.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 61788a508971..4ce3d6a63d18 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -520,7 +520,7 @@ static inline u8 iwl_tfd_get_num_tbs(struct iwl_tfd *tfd) | |||
520 | */ | 520 | */ |
521 | void iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) | 521 | void iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) |
522 | { | 522 | { |
523 | struct iwl_tfd *tfd_tmp = (struct iwl_tfd *)&txq->tfds[0]; | 523 | struct iwl_tfd *tfd_tmp = (struct iwl_tfd *)txq->tfds; |
524 | struct iwl_tfd *tfd; | 524 | struct iwl_tfd *tfd; |
525 | struct pci_dev *dev = priv->pci_dev; | 525 | struct pci_dev *dev = priv->pci_dev; |
526 | int index = txq->q.read_ptr; | 526 | int index = txq->q.read_ptr; |
@@ -563,11 +563,12 @@ int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | |||
563 | u8 reset, u8 pad) | 563 | u8 reset, u8 pad) |
564 | { | 564 | { |
565 | struct iwl_queue *q; | 565 | struct iwl_queue *q; |
566 | struct iwl_tfd *tfd; | 566 | struct iwl_tfd *tfd, *tfd_tmp; |
567 | u32 num_tbs; | 567 | u32 num_tbs; |
568 | 568 | ||
569 | q = &txq->q; | 569 | q = &txq->q; |
570 | tfd = &txq->tfds[q->write_ptr]; | 570 | tfd_tmp = (struct iwl_tfd *)txq->tfds; |
571 | tfd = &tfd_tmp[q->write_ptr]; | ||
571 | 572 | ||
572 | if (reset) | 573 | if (reset) |
573 | memset(tfd, 0, sizeof(*tfd)); | 574 | memset(tfd, 0, sizeof(*tfd)); |