]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit54df7ef51193641010a934c231c5aba117aea46d
treeafd64043bb50e99f4d5e632d965803575118dc4d
parent3a7943ba5b7763488753305fddb0a50e911e0617
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