]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
rtw88: Fix an error message
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Aug 2019 10:46:42 +0000 (13:46 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:35:08 +0000 (16:35 +0300)
The WARN_ON() macro takes a condition, not a warning message.  I've
changed this to use WARN() instead.

Fixes: 4136214f7c46 ("rtw88: add BT co-existence support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/coex.c

index 4577fceddc5ea025ece136e679e83cc01ece09b6..13701ec4030272546ecde5c5a92cb66458039b0c 100644 (file)
@@ -1059,7 +1059,7 @@ static void rtw_coex_set_ant_path(struct rtw_dev *rtwdev, bool force, u8 phase)
                pos_type = COEX_SWITCH_TO_WLG_BT;
                break;
        default:
-               WARN_ON("unknown phase when setting antenna path\n");
+               WARN(1, "unknown phase when setting antenna path\n");
                return;
        }