wifi: rtw88: remove unused rtw_pci_get_tx_desc function
authorTom Rix <trix@redhat.com>
Mon, 20 Mar 2023 23:34:48 +0000 (19:34 -0400)
committerKalle Valo <kvalo@kernel.org>
Fri, 31 Mar 2023 14:46:08 +0000 (17:46 +0300)
clang with W=1 reports
drivers/net/wireless/realtek/rtw88/pci.c:92:21: error:
  unused function 'rtw_pci_get_tx_desc' [-Werror,-Wunused-function]
static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx)
                    ^
This function is not used, so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230320233448.1729899-1-trix@redhat.com
drivers/net/wireless/realtek/rtw88/pci.c

index b4bd831c9845363eb3d92018088e0a32157907f1..6a8e6ee82069081f9ef6a21eee69258daa7f5e15 100644 (file)
@@ -89,13 +89,6 @@ static void rtw_pci_write32(struct rtw_dev *rtwdev, u32 addr, u32 val)
        writel(val, rtwpci->mmap + addr);
 }
 
-static inline void *rtw_pci_get_tx_desc(struct rtw_pci_tx_ring *tx_ring, u8 idx)
-{
-       int offset = tx_ring->r.desc_size * idx;
-
-       return tx_ring->r.head + offset;
-}
-
 static void rtw_pci_free_tx_ring_skbs(struct rtw_dev *rtwdev,
                                      struct rtw_pci_tx_ring *tx_ring)
 {