mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
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:
parent
69449bbd65
commit
44925dfff0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue