From: Dan Carpenter Date: Wed, 14 Aug 2019 10:46:42 +0000 (+0300) Subject: rtw88: Fix an error message X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=52929cad329328f534d37b803f7fb78bbfe7ee3d;p=openwrt%2Fstaging%2Fblogic.git rtw88: Fix an error message 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/realtek/rtw88/coex.c b/drivers/net/wireless/realtek/rtw88/coex.c index 4577fceddc5e..13701ec40302 100644 --- a/drivers/net/wireless/realtek/rtw88/coex.c +++ b/drivers/net/wireless/realtek/rtw88/coex.c @@ -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; }