rtlwifi: Replace local debug macro RT_ASSERT
This macro can be replaced with WARN_ONCE. In addition to using a standard debugging macro for these critical errors, we also get a stack dump. In rtl8821ae/hw.c, a senseless comment was removed, and an incorrect indentation was fixed. This patch also fixes two places in each of rtl8192ee, rtl8723be, and rtl8821ae where the logical condition was incorrect. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
此提交包含在:
@@ -283,7 +283,7 @@ bool rtl8723_phy_set_sw_chnl_cmdarray(struct swchnlcmd *cmdtable,
|
||||
struct swchnlcmd *pcmd;
|
||||
|
||||
if (cmdtable == NULL) {
|
||||
RT_ASSERT(false, "cmdtable cannot be NULL.\n");
|
||||
WARN_ONCE(true, "rtl8723-common: cmdtable cannot be NULL.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
新增問題並參考
封鎖使用者