2015-06-02 07:34:36

by Raja Mani

[permalink] [raw]
Subject: [PATCH v2] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup()

mete_data is extracted from ce descriptor and stored in variable 'id'.
later, id is not used anywhere in the same function.

Fixes: d84a512dca23 ("ath10k: remove transfer_id from
ath10k_hif_cb::tx_completion")

Signed-off-by: Raja Mani <[email protected]>
---

V2 changes:
- added original commit msg detail in commit log which
introduced this unused variable.

drivers/net/wireless/ath/ath10k/pci.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 969a123..bbc349a 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -1275,7 +1275,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
struct ath10k_ce_ring *ce_ring;
struct ce_desc *ce_desc;
struct sk_buff *skb;
- unsigned int id;
int i;

ar = pci_pipe->hif_ce_state;
@@ -1299,8 +1298,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
continue;

ce_ring->per_transfer_context[i] = NULL;
- id = MS(__le16_to_cpu(ce_desc[i].flags),
- CE_DESC_FLAGS_META_DATA);

ar_pci->msg_callbacks_current.tx_completion(ar, skb);
}
--
1.7.10.4



2015-06-09 10:53:36

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH v2] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup()

Raja Mani <[email protected]> writes:

> mete_data is extracted from ce descriptor and stored in variable 'id'.
> later, id is not used anywhere in the same function.
>
> Fixes: d84a512dca23 ("ath10k: remove transfer_id from
> ath10k_hif_cb::tx_completion")
>
> Signed-off-by: Raja Mani <[email protected]>

Thanks, applied.

--
Kalle Valo