[PATCH] tracing: Use swap macro in update_max_tr

2018-02-09 Thread Gustavo A. R. Silva
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. Signed-off-by: Gustavo A. R. Silva --- kernel/trace/trace.c | 6 +-

[PATCH] tracing: Use swap macro in update_max_tr

2018-02-09 Thread Gustavo A. R. Silva
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. Signed-off-by: Gustavo A. R. Silva --- kernel/trace/trace.c | 6 +- 1 file changed, 1

[PATCH] tracing: use swap macro in update_max_tr

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable buf. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- kernel/trace/trace.c | 8 +--- 1 file changed, 1

[PATCH] tracing: use swap macro in update_max_tr

2017-11-03 Thread Gustavo A. R. Silva
Make use of the swap macro and remove unnecessary variable buf. This makes the code easier to read and maintain. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- kernel/trace/trace.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff