tracing: Optimize trace_buffer_iter() logic
authoryuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Sun, 8 Apr 2018 11:36:31 +0000 (19:36 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 3 Jul 2018 22:23:33 +0000 (18:23 -0400)
commitf26808ba7227a921e0e8549c7d3c52332b920085
tree699f09c2967d89edbcdc522102019240a90c3c0d
parentf90658725ba7ebb031054866aff4cda0d099a3b1
tracing: Optimize trace_buffer_iter() logic

Simplify and optimize the logic in trace_buffer_iter() to use a conditional
operation instead of an if conditional.

Link: http://lkml.kernel.org/r/20180408113631.3947-1-cugyly@163.com
Signed-off-by: yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.h