提交 b3f7a6cd 编写于 作者: D Dan Carpenter 提交者: Steven Rostedt (VMware)

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@mwandaSigned-off-by: NDan Carpenter <dan.carpenter@oracle.com>
[ Pulled from the archeological digging of my INBOX ]
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 cbc3b92c
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册