diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-22 21:30:12 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-01-24 18:22:33 -0500 |
commit | b3f7a6cd490112085eadb578b6f4a5a34d140726 (patch) | |
tree | 3115e08e24a3ee4e204b199bc09dba9b523de98d /kernel/trace/trace.c | |
parent | cbc3b92ce037f5e7536f6db157d185cd8b8f615c (diff) | |
download | linux-b3f7a6cd490112085eadb578b6f4a5a34d140726.tar.bz2 |
tracing: Remove unneeded NULL check
We checked "iter->trace" earlier so there is no need to check here.
Link: http://lkml.kernel.org/r/20141122183012.GB6994@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[ Pulled from the archeological digging of my INBOX ]
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index d1410b4462ac..6fed9b0a8d58 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -4224,7 +4224,7 @@ __tracing_open(struct inode *inode, struct file *file, bool snapshot) mutex_init(&iter->mutex); /* Notify the tracer early; before we stop tracing. */ - if (iter->trace && iter->trace->open) + if (iter->trace->open) iter->trace->open(iter); /* Annotate start of buffers if we had overruns */ |