wifi: rtl8xxxu: fix error messages
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 31 Jan 2024 07:10:07 +0000 (10:10 +0300)
committerKalle Valo <kvalo@kernel.org>
Thu, 1 Feb 2024 10:21:02 +0000 (12:21 +0200)
commit17903a283593c1dbf9da041f836004163ca30f7b
treefdff9f90a7c27de299766e66746141af8cd2c604
parentf1abee76dba829ada6e30ac640443e81bde2f878
wifi: rtl8xxxu: fix error messages

The first parameter of WARN_ONCE() is a condition so this code will end
up printing the function name instead of the proper message.

Fixes: 3ff7a05996f9 ("wifi: rtl8xxxu: support setting bssid register for multiple interfaces")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/7b144531-a8da-4725-8911-9b614a525a35@moroto.mountain
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c