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

Commit 62312f22 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

rpmsg: Don't check for NULL before ipc_log_string()



The ipc_log_string() function quietly checks for a NULL context so an
explicit check is not needed.

Change-Id: Ic0dedbadbd6f8d3e8e1b76ba5597fa0b6f6ead2a
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 5dee537e
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -29,14 +29,11 @@

#define GLINK_LOG_PAGE_CNT 2
#define GLINK_INFO(ctxt, x, ...)					  \
do {									  \
	if (ctxt)							  \
		ipc_log_string(ctxt, "[%s]: "x, __func__, ##__VA_ARGS__); \
} while (0)
	ipc_log_string(ctxt, "[%s]: "x, __func__, ##__VA_ARGS__)

#define CH_INFO(ch, x, ...)						     \
do {									     \
	if (ch->glink && ch->glink->ilc)				     \
	if (ch->glink)							     \
		ipc_log_string(ch->glink->ilc, "%s[%d:%d] %s: "x, ch->name,  \
			       ch->lcid, ch->rcid, __func__, ##__VA_ARGS__); \
} while (0)