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
 
                reg = REG_MACID1;
                break;
        default:
-               WARN_ONCE("%s: invalid port_num\n", __func__);
+               WARN_ONCE(1, "%s: invalid port_num\n", __func__);
                return -EINVAL;
        }
 
                reg = REG_BSSID1;
                break;
        default:
-               WARN_ONCE("%s: invalid port_num\n", __func__);
+               WARN_ONCE(1, "%s: invalid port_num\n", __func__);
                return -EINVAL;
        }