]> git.baikalelectronics.ru Git - kernel.git/commit
net: dccp: ccids: lib: packet_history: use swap macro in tfrc_rx_hist_swap
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sat, 28 Oct 2017 20:48:47 +0000 (15:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 03:05:49 +0000 (12:05 +0900)
commitc16e907d6fe93b47616fa7fdb9527bf9c8d9caca
treeafd64043bb50e99f4d5e632d965803575118dc4d
parent8155c500d43dc99ac888dc8ef93c7ac5597b376d
net: dccp: ccids: lib: packet_history: use swap macro in tfrc_rx_hist_swap

Make use of the swap macro and remove unnecessary variable tmp.
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 <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ccids/lib/packet_history.c