]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: pci: use 'int' as return type of error code in poll_{tx,rx}dma_ch_idle()
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 9 Oct 2024 00:42:56 +0000 (08:42 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sun, 20 Oct 2024 02:31:24 +0000 (10:31 +0800)
commit778e2478d19574508861bcb1806d6e34d095587c
treea7b03f52190532241e9567e5e34f1c14b7a601a0
parent5af57c4f9937745c80b14e9e1d0adc4defc1f7ed
wifi: rtw89: pci: use 'int' as return type of error code in poll_{tx,rx}dma_ch_idle()

The return type of error code of read_poll_timeout() and
rtw89_pci_poll_{tx,rx}dma_ch_idle_ax() and must be 'int'.
Correct them accordingly.

Addresses-Coverity-ID: 1622341 ("Overflowed constant")
Addresses-Coverity-ID: 1627296 ("Overflowed constant")

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241009004300.8144-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c