Structures used by these functions are now
guaranteed to remain accessible until driver is
unregistered.

Signed-off-by: Michal Kazior <[email protected]>
---
 drivers/net/wireless/ath/ath10k/pci.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/pci.c 
b/drivers/net/wireless/ath/ath10k/pci.c
index 6a5ca9e..8244658 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -1088,10 +1088,6 @@ static void ath10k_pci_rx_pipe_cleanup(struct 
ath10k_pci_pipe *pipe_info)
 
        ar = pipe_info->hif_ce_state;
        ar_pci = ath10k_pci_priv(ar);
-
-       if (!ar_pci->started)
-               return;
-
        ce_hdl = pipe_info->ce_hdl;
 
        while (ath10k_ce_revoke_recv_next(ce_hdl, (void **)&netbuf,
@@ -1122,10 +1118,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct 
ath10k_pci_pipe *pipe_info)
 
        ar = pipe_info->hif_ce_state;
        ar_pci = ath10k_pci_priv(ar);
-
-       if (!ar_pci->started)
-               return;
-
        ce_hdl = pipe_info->ce_hdl;
 
        while (ath10k_ce_cancel_send_next(ce_hdl, (void **)&netbuf,
-- 
1.8.5.3


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

Reply via email to