rtw89: pci: correct return value handling of rtw89_write16_mdio_mask()
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 13 Apr 2022 01:08:04 +0000 (09:08 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 13 Apr 2022 06:26:52 +0000 (09:26 +0300)
commitdc4246eff026699c48b27d5bae944b664a5c8035
treedd5cb1457bdb7fce336276f8a36b28b2054f446c
parent0a6f299b6782c522be67074d37e4e0da56389ddc
rtw89: pci: correct return value handling of rtw89_write16_mdio_mask()

Fix wrong checking statement. Fortunately, this wrong code doesn't affect
existing chip.

Fixes: 740c431c22fe ("rtw89: pci: add register definition to rtw89_pci_info to generalize pci code")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220413010804.8941-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c