提交 be10b09b 编写于 作者: D Dan Carpenter 提交者: Kalle Valo

rtw88: Fix an error message

The WARN_ON() macro doesn't take an error message, the argument is a
condition so this won't display the warning message.

Fixes: 27e117e4 ("rtw88: add deep power save support")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 e542e66b
......@@ -109,7 +109,7 @@ void rtw_power_mode_change(struct rtw_dev *rtwdev, bool enter)
* read/write. It should be treated as fatal error and
* requires an entire analysis about the firmware/hardware
*/
WARN_ON("Hardware power state locked\n");
WARN(1, "Hardware power state locked\n");
}
}
EXPORT_SYMBOL(rtw_power_mode_change);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册