commit | 08ae88f8104f486fd4103854119169f3e55dbc4c | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | Fri Feb 09 11:53:16 2018 -0600 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Thu Jun 21 15:12:43 2018 -0400 |
tree | 8b85d4520b0e6ec6249a104365dc3a885dfa09b8 | |
parent | 1a63dcd8765bc8680481dc2f9acf6ef13cee6d27 [diff] |
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>