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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:

committed by
Steven Rostedt (VMware)

parent
69449bbd65
commit
44925dfff0
@@ -3950,7 +3950,7 @@ static int cache_mod(struct trace_array *tr,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* no func matches all */
|
/* no func matches all */
|
||||||
if (!func || strcmp(func, "*") == 0 ||
|
if (strcmp(func, "*") == 0 ||
|
||||||
(ftrace_mod->func &&
|
(ftrace_mod->func &&
|
||||||
strcmp(ftrace_mod->func, func) == 0)) {
|
strcmp(ftrace_mod->func, func) == 0)) {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Reference in New Issue
Block a user