]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Use swap macro in update_max_tr
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 9 Feb 2018 17:53:16 +0000 (11:53 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 21 Jun 2018 19:12:43 +0000 (15:12 -0400)
commit65148bf4ce8eadcc3d9e1934994143ca1552d86b
tree8b85d4520b0e6ec6249a104365dc3a885dfa09b8
parente8ab78c32857effc9ec33c9582b9c409cbef0cb6
tracing: Use swap macro in update_max_tr

Make use of the swap macro and remove unnecessary variable _buf_.
This makes the code easier to read and maintain. Also, reduces the
stack usage.

This code was detected with the help of Coccinelle.

Link: http://lkml.kernel.org/r/20180209175316.GA18720@embeddedgus
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c