rtlwifi: cleanup the code that check whether TX ring is available
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 13 Nov 2017 09:39:35 +0000 (17:39 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Dec 2017 13:14:52 +0000 (15:14 +0200)
commitcf54622c8076028ccb771c199e594b1030ba8fa2
treeaf9018a1d1bb488f20a783fc272660d2891ab999
parentdc9682a0cca5018a64eefe1630f204fe4fbfebcc
rtlwifi: cleanup the code that check whether TX ring is available

Remove the duplicate checking of TX ring's available number, and remove
the variable to store available number that can be calculated by
read/write pointers.

Signed-off-by: Steven Ting <steventing@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/pci.c
drivers/net/wireless/realtek/rtlwifi/pci.h
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c