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

Commit 57a1b902 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: adsprpc: 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: Ic0dedbadd65d63fabad339e6db872c8b02d3f875
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent d031b993
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -132,12 +132,8 @@

#define FASTRPC_GLINK_LOG_PAGES 8
#define LOG_FASTRPC_GLINK_MSG(ctx, x, ...)	\
	do {				\
		if (ctx)		\
	ipc_log_string(ctx, "%s (%d, %d): "x,	\
				current->comm, current->tgid, current->pid, \
				##__VA_ARGS__); \
	} while (0)
		current->comm, current->tgid, current->pid, ##__VA_ARGS__)

static int fastrpc_pdr_notifier_cb(struct notifier_block *nb,
					unsigned long code,