mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 10:20:17 -04:00
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: 27e117e4b0 ("rtw88: add deep power save support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
committed by
Kalle Valo
parent
e542e66b7c
commit
be10b09b27
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user