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 +-
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
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
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
4 matches
Mail list logo