summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/net/wireless/iwlegacy/3945.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/net/wireless/iwlegacy/3945.c')
-rw-r--r--kernel/drivers/net/wireless/iwlegacy/3945.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/net/wireless/iwlegacy/3945.c b/kernel/drivers/net/wireless/iwlegacy/3945.c
index 93bdf684b..ae047ab7a 100644
--- a/kernel/drivers/net/wireless/iwlegacy/3945.c
+++ b/kernel/drivers/net/wireless/iwlegacy/3945.c
@@ -1019,12 +1019,13 @@ il3945_hw_txq_ctx_free(struct il_priv *il)
int txq_id;
/* Tx queues */
- if (il->txq)
+ if (il->txq) {
for (txq_id = 0; txq_id < il->hw_params.max_txq_num; txq_id++)
if (txq_id == IL39_CMD_QUEUE_NUM)
il_cmd_queue_free(il);
else
il_tx_queue_free(il, txq_id);
+ }
/* free tx queue structure */
il_free_txq_mem(il);