1
0
Fork 0

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: 4136214f7c ("rtw88: add BT co-existence support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
alistair/sunxi64-5.4-dsi
Dan Carpenter 2019-08-14 13:46:42 +03:00 committed by Kalle Valo
parent fe025ef7d0
commit 52929cad32
1 changed files with 1 additions and 1 deletions

View 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;
}