net: decnet: dn_nsp_out: use swap macro in dn_mk_ack_header
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sat, 28 Oct 2017 20:39:48 +0000 (15:39 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 03:05:49 +0000 (12:05 +0900)
commit3a7943ba5b7763488753305fddb0a50e911e0617
tree621be74459ec11618ef4f45556b8bb9531dc1f53
parent68ad08c4f8ee6254ab814d15b9765f7f82ed0ae7
net: decnet: dn_nsp_out: use swap macro in dn_mk_ack_header

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/decnet/dn_nsp_out.c