diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-02-03 11:32:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:56:13 -0500 |
commit | 00ea99e1d86b05e7ba90d66673b536b731af87cd (patch) | |
tree | fe903abefeb16778697e48062a4321cee42b0c99 /drivers/net/wireless/iwlegacy/common.c | |
parent | 89ef1ed2d241d3dfe884055d8446a5dd94919e54 (diff) |
iwlegacy: remove struct il_tx_info
It's just wrapper to sk_buff pointers ...
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c index 1173521f21fb..04ec38e5eaaf 100644 --- a/drivers/net/wireless/iwlegacy/common.c +++ b/drivers/net/wireless/iwlegacy/common.c | |||
@@ -2755,8 +2755,8 @@ il_tx_queue_free(struct il_priv *il, int txq_id) | |||
2755 | txq->tfds, txq->q.dma_addr); | 2755 | txq->tfds, txq->q.dma_addr); |
2756 | 2756 | ||
2757 | /* De-alloc array of per-TFD driver data */ | 2757 | /* De-alloc array of per-TFD driver data */ |
2758 | kfree(txq->txb); | 2758 | kfree(txq->skbs); |
2759 | txq->txb = NULL; | 2759 | txq->skbs = NULL; |
2760 | 2760 | ||
2761 | /* deallocate arrays */ | 2761 | /* deallocate arrays */ |
2762 | kfree(txq->cmd); | 2762 | kfree(txq->cmd); |
@@ -2930,23 +2930,21 @@ il_tx_queue_alloc(struct il_priv *il, struct il_tx_queue *txq, u32 id) | |||
2930 | /* Driver ilate data, only for Tx (not command) queues, | 2930 | /* Driver ilate data, only for Tx (not command) queues, |
2931 | * not shared with device. */ | 2931 | * not shared with device. */ |
2932 | if (id != il->cmd_queue) { | 2932 | if (id != il->cmd_queue) { |
2933 | txq->txb = kcalloc(TFD_QUEUE_SIZE_MAX, sizeof(txq->txb[0]), | 2933 | txq->skbs = kcalloc(TFD_QUEUE_SIZE_MAX, sizeof(struct skb *), |
2934 | GFP_KERNEL); | 2934 | GFP_KERNEL); |
2935 | if (!txq->txb) { | 2935 | if (!txq->skbs) { |
2936 | IL_ERR("kmalloc for auxiliary BD " | 2936 | IL_ERR("Fail to alloc skbs\n"); |
2937 | "structures failed\n"); | ||
2938 | goto error; | 2937 | goto error; |
2939 | } | 2938 | } |
2940 | } else { | 2939 | } else |
2941 | txq->txb = NULL; | 2940 | txq->skbs = NULL; |
2942 | } | ||
2943 | 2941 | ||
2944 | /* Circular buffer of transmit frame descriptors (TFDs), | 2942 | /* Circular buffer of transmit frame descriptors (TFDs), |
2945 | * shared with device */ | 2943 | * shared with device */ |
2946 | txq->tfds = | 2944 | txq->tfds = |
2947 | dma_alloc_coherent(dev, tfd_sz, &txq->q.dma_addr, GFP_KERNEL); | 2945 | dma_alloc_coherent(dev, tfd_sz, &txq->q.dma_addr, GFP_KERNEL); |
2948 | if (!txq->tfds) { | 2946 | if (!txq->tfds) { |
2949 | IL_ERR("pci_alloc_consistent(%zd) failed\n", tfd_sz); | 2947 | IL_ERR("Fail to alloc TFDs\n"); |
2950 | goto error; | 2948 | goto error; |
2951 | } | 2949 | } |
2952 | txq->q.id = id; | 2950 | txq->q.id = id; |
@@ -2954,8 +2952,8 @@ il_tx_queue_alloc(struct il_priv *il, struct il_tx_queue *txq, u32 id) | |||
2954 | return 0; | 2952 | return 0; |
2955 | 2953 | ||
2956 | error: | 2954 | error: |
2957 | kfree(txq->txb); | 2955 | kfree(txq->skbs); |
2958 | txq->txb = NULL; | 2956 | txq->skbs = NULL; |
2959 | 2957 | ||
2960 | return -ENOMEM; | 2958 | return -ENOMEM; |
2961 | } | 2959 | } |