skip ipa assert for debug build

ipa assert will break userdebug build in secure hw for logs.
skip ipa assert for debug build.

Change-Id: I52d5433282ce9bb24e954bca9e3d0c04fe5bedc5
Signed-off-by: lixh8 <lixh8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1799258
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
lixh8 authored and Gilberto Gambugge committed 2023-06-01 00:47:14 -03:00
1 parent 347882f665
commit a3511519b3
1 file changed
+5
+5
View File
@@ -6356,7 +6356,12 @@ static void ipa3_load_ipa_fw(struct work_struct *work)
if (result) { if (result) {
IPAERR("IPA FW loading process has failed result=%d\n", IPAERR("IPA FW loading process has failed result=%d\n",
result); result);
#if defined(DEBUG)
IPAERR("IPA FW loading FAILED!!! SKIP ASSERT for debug build!!!");
#else
ipa_assert(); ipa_assert();
#endif
return; return;
} }
pr_info("IPA FW loaded successfully\n"); pr_info("IPA FW loaded successfully\n");