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

Commit 85a19b6d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Treat MHI_ASSERT as fatal error"

parents dd60898e c9103bcb
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -946,22 +946,9 @@ irqreturn_t mhi_intvec_threaded_handlr(int irq_number, void *dev);
irqreturn_t mhi_intvec_handlr(int irq_number, void *dev);
void mhi_ev_task(unsigned long data);

#ifdef CONFIG_MHI_DEBUG

#define MHI_ASSERT(cond, fmt, ...) do { \
	if (cond) \
		panic(fmt); \
} while (0)

#else

#define MHI_ASSERT(cond, fmt, ...) do { \
	if (cond) { \
		MHI_ERR(fmt); \
		WARN_ON(cond); \
	} \
} while (0)

#endif

#endif /* _MHI_INT_H */