rtw88: change max_num_of_tx_queue() definition to inline in pci.h
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 20 Dec 2019 09:21:56 +0000 (17:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:38:14 +0000 (17:38 +0200)
It's more reasonable to define max_num_of_tx_queue() as an inline function.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/pci.h

index 49bf29a92152c59d61985161067be84ba56399bd..1580cfc573610028929c38d8c0a16c0047a00f22 100644 (file)
@@ -210,7 +210,7 @@ struct rtw_pci {
        void __iomem *mmap;
 };
 
-static u32 max_num_of_tx_queue(u8 queue)
+static inline u32 max_num_of_tx_queue(u8 queue)
 {
        u32 max_num;