Message ID | 20190814104642.GA14268@mwanda (mailing list archive) |
---|---|
State | Accepted |
Commit | 52929cad329328f534d37b803f7fb78bbfe7ee3d |
Delegated to: | Kalle Valo |
Headers | show |
Series | rtw88: Fix an error message | expand |
Dan Carpenter <dan.carpenter@oracle.com> wrote: > 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> Patch applied to wireless-drivers-next.git, thanks. 52929cad3293 rtw88: Fix an error message
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; }
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> --- drivers/net/wireless/realtek/rtw88/coex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)