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-3945.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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 602a3a915684..22770f44c2fa 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -730,10 +730,11 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | |||
730 | { | 730 | { |
731 | int count; | 731 | int count; |
732 | struct iwl_queue *q; | 732 | struct iwl_queue *q; |
733 | struct iwl3945_tfd *tfd; | 733 | struct iwl3945_tfd *tfd, *tfd_tmp; |
734 | 734 | ||
735 | q = &txq->q; | 735 | q = &txq->q; |
736 | tfd = &txq->tfds39[q->write_ptr]; | 736 | tfd_tmp = (struct iwl3945_tfd *)txq->tfds; |
737 | tfd = &tfd_tmp[q->write_ptr]; | ||
737 | 738 | ||
738 | if (reset) | 739 | if (reset) |
739 | memset(tfd, 0, sizeof(*tfd)); | 740 | memset(tfd, 0, sizeof(*tfd)); |
@@ -764,7 +765,7 @@ int iwl3945_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, | |||
764 | */ | 765 | */ |
765 | void iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) | 766 | void iwl3945_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) |
766 | { | 767 | { |
767 | struct iwl3945_tfd *tfd_tmp = (struct iwl3945_tfd *)&txq->tfds39[0]; | 768 | struct iwl3945_tfd *tfd_tmp = (struct iwl3945_tfd *)txq->tfds; |
768 | struct iwl3945_tfd *tfd = &tfd_tmp[txq->q.read_ptr]; | 769 | struct iwl3945_tfd *tfd = &tfd_tmp[txq->q.read_ptr]; |
769 | struct pci_dev *dev = priv->pci_dev; | 770 | struct pci_dev *dev = priv->pci_dev; |
770 | int i; | 771 | int i; |