]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: brcm80211: Remove unused dma_txflush()
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 25 Oct 2024 20:46:51 +0000 (21:46 +0100)
committerKalle Valo <kvalo@kernel.org>
Thu, 31 Oct 2024 14:19:18 +0000 (16:19 +0200)
dma_fxflush() has been unused since 2013's
commit 7b2385b95363 ("brcmsmac: rework of mac80211 .flush() callback
operation")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241025204651.244627-1-linux@treblig.org
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.h

index bd480239368a4bf817167c46f80d5eca96e2f7dc..80c35027787a1e112d35eb630e0e43a24aa94ff6 100644 (file)
@@ -1426,15 +1426,6 @@ int dma_txfast(struct brcms_c_info *wlc, struct dma_pub *pub,
        return -ENOSPC;
 }
 
-void dma_txflush(struct dma_pub *pub)
-{
-       struct dma_info *di = container_of(pub, struct dma_info, dma);
-       struct brcms_ampdu_session *session = &di->ampdu_session;
-
-       if (!skb_queue_empty(&session->skb_list))
-               ampdu_finalize(di);
-}
-
 int dma_txpending(struct dma_pub *pub)
 {
        struct dma_info *di = container_of(pub, struct dma_info, dma);
index ff5b80b0904636661ced2b2896c7730312a734bd..7905fd0817218541989ca838e20bb1a37a0d7508 100644 (file)
@@ -88,7 +88,6 @@ bool dma_txreset(struct dma_pub *pub);
 void dma_txinit(struct dma_pub *pub);
 int dma_txfast(struct brcms_c_info *wlc, struct dma_pub *pub,
               struct sk_buff *p0);
-void dma_txflush(struct dma_pub *pub);
 int dma_txpending(struct dma_pub *pub);
 void dma_kick_tx(struct dma_pub *pub);
 void dma_txsuspend(struct dma_pub *pub);