ath10k: remove unused variable ar_pci
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 5 Sep 2016 13:38:02 +0000 (22:38 +0900)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 13 Sep 2016 12:25:09 +0000 (15:25 +0300)
Trival fix to remove unused variable ar_pci in ath10k_pci_tx_pipe_cleanup
when building with W=1:
drivers/net/wireless/ath/ath10k/pci.c:1696:21: warning: variable
'ar_pci' set but not used [-Wunused-but-set-variable]

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c

index a6d9c06ed0455b8e87427cd44550e905fe89270c..0457e315d336c52ef99f06cf2c5ec2ebb01ac046 100644 (file)
@@ -1691,14 +1691,12 @@ static void ath10k_pci_rx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
 static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
 {
        struct ath10k *ar;
-       struct ath10k_pci *ar_pci;
        struct ath10k_ce_pipe *ce_pipe;
        struct ath10k_ce_ring *ce_ring;
        struct sk_buff *skb;
        int i;
 
        ar = pci_pipe->hif_ce_state;
-       ar_pci = ath10k_pci_priv(ar);
        ce_pipe = pci_pipe->ce_hdl;
        ce_ring = ce_pipe->src_ring;