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

Commit 44925dff authored by Dan Carpenter's avatar Dan Carpenter Committed by Steven Rostedt (VMware)
Browse files

ftrace: Remove an unneeded NULL check

"func" can't be NULL and it doesn't make sense to check because we've
already derefenced it.

Link: http://lkml.kernel.org/r/20170712073340.4enzeojeoupuds5a@mwanda



Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 69449bbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3950,7 +3950,7 @@ static int cache_mod(struct trace_array *tr,
				continue;

			/* no func matches all */
			if (!func || strcmp(func, "*") == 0 ||
			if (strcmp(func, "*") == 0 ||
			    (ftrace_mod->func &&
			     strcmp(ftrace_mod->func, func) == 0)) {
				ret = 0;