diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-10-23 16:42:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:50:02 -0400 |
commit | 71c55d90f9733abdf5e4e0bc24f71e189cefeea6 (patch) | |
tree | 1cdd5147eef924a40b4418f0cd41d1aa22c93cec /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | 6c5cd9d524a3393f6450ee523f4a942d4404f7de (diff) |
iwlwifi: remove unused parameters
parameters "len" is not used in both iwl_tx_queue_free() and
iwl_cmd_queue_free() functions
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@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-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 5c43d7c43b30..8ae4c9b614e7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -131,7 +131,7 @@ void iwl_tx_queue_free(struct iwl_priv *priv, int txq_id) | |||
131 | struct iwl_tx_queue *txq = &priv->txq[txq_id]; | 131 | struct iwl_tx_queue *txq = &priv->txq[txq_id]; |
132 | struct iwl_queue *q = &txq->q; | 132 | struct iwl_queue *q = &txq->q; |
133 | struct pci_dev *dev = priv->pci_dev; | 133 | struct pci_dev *dev = priv->pci_dev; |
134 | int i, len; | 134 | int i; |
135 | 135 | ||
136 | if (q->n_bd == 0) | 136 | if (q->n_bd == 0) |
137 | return; | 137 | return; |
@@ -141,8 +141,6 @@ void iwl_tx_queue_free(struct iwl_priv *priv, int txq_id) | |||
141 | q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) | 141 | q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) |
142 | priv->cfg->ops->lib->txq_free_tfd(priv, txq); | 142 | priv->cfg->ops->lib->txq_free_tfd(priv, txq); |
143 | 143 | ||
144 | len = sizeof(struct iwl_device_cmd) * q->n_window; | ||
145 | |||
146 | /* De-alloc array of command/tx buffers */ | 144 | /* De-alloc array of command/tx buffers */ |
147 | for (i = 0; i < TFD_TX_CMD_SLOTS; i++) | 145 | for (i = 0; i < TFD_TX_CMD_SLOTS; i++) |
148 | kfree(txq->cmd[i]); | 146 | kfree(txq->cmd[i]); |
@@ -180,14 +178,11 @@ void iwl_cmd_queue_free(struct iwl_priv *priv) | |||
180 | struct iwl_tx_queue *txq = &priv->txq[IWL_CMD_QUEUE_NUM]; | 178 | struct iwl_tx_queue *txq = &priv->txq[IWL_CMD_QUEUE_NUM]; |
181 | struct iwl_queue *q = &txq->q; | 179 | struct iwl_queue *q = &txq->q; |
182 | struct pci_dev *dev = priv->pci_dev; | 180 | struct pci_dev *dev = priv->pci_dev; |
183 | int i, len; | 181 | int i; |
184 | 182 | ||
185 | if (q->n_bd == 0) | 183 | if (q->n_bd == 0) |
186 | return; | 184 | return; |
187 | 185 | ||
188 | len = sizeof(struct iwl_device_cmd) * q->n_window; | ||
189 | len += IWL_MAX_SCAN_SIZE; | ||
190 | |||
191 | /* De-alloc array of command/tx buffers */ | 186 | /* De-alloc array of command/tx buffers */ |
192 | for (i = 0; i <= TFD_CMD_SLOTS; i++) | 187 | for (i = 0; i <= TFD_CMD_SLOTS; i++) |
193 | kfree(txq->cmd[i]); | 188 | kfree(txq->cmd[i]); |