Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbcf3eb9 authored by Prashanth Bhatta's avatar Prashanth Bhatta
Browse files

icnss: Remove WARN_ON



For QMI timeout issues ICNSS_ASSERT macro invokes WARN_ON but
there can be cases of multiple QMI timeouts and those may cause
to spit out lot of WARN_ON message to kernel log. Because of
this, kernel log buffer may overlap and miss logs which may be of
use for debugging the QMI timeout issue. Remove WARN_ON by making
ICNSS_ASSERT as a dummy macro.

Change-Id: I0d5d76a2385f40f64ec5d811f7bcde82f1c44877
CRs-fixed: 2016253
Signed-off-by: default avatarPrashanth Bhatta <bhattap@codeaurora.org>
parent 4ffd6a18
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -110,13 +110,7 @@ module_param(qmi_timeout, ulong, 0600);
		}							\
	} while (0)
#else
#define ICNSS_ASSERT(_condition) do {					\
		if (!(_condition)) {					\
			icnss_pr_err("ASSERT at line %d\n",		\
				     __LINE__);				\
			WARN_ON(1);					\
		}							\
	} while (0)
#define ICNSS_ASSERT(_condition) do { } while (0)
#endif

enum icnss_debug_quirks {