ipv6: exthdrs: use swap macro in ipv6_dest_hao
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 27 Oct 2017 04:10:35 +0000 (23:10 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Oct 2017 10:06:59 +0000 (19:06 +0900)
commit74b6551b9f4106a3e69ab46e60b52a8947dcf60c
treeb9229574c0da3cfc731699097ac29af139c36dcc
parenta830405ee452ddc4101c3c9334e6fedd42c6b357
ipv6: exthdrs: use swap macro in ipv6_dest_hao

make use of the swap macro and remove unnecessary variable tmp_addr.
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/ipv6/exthdrs.c