diff mbox series

rtw88: Fix an error message

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

Commit Message

Dan Carpenter Aug. 14, 2019, 10:46 a.m. UTC
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(-)

Comments

Kalle Valo Sept. 3, 2019, 1:35 p.m. UTC | #1
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 mbox series

Patch

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