OSDN Git Service

net: usb: hso: use swap macro in hso_kick_transmit
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 12 Jul 2018 19:43:20 +0000 (14:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 20:35:47 +0000 (13:35 -0700)
commitae85467cccba9b255bd91b583effb17a5b57a12f
treea0d92ca10c367ff9f407262cae6d51905784bb77
parent2a6deb6a572e7b1c34ac8ab662346124c3c4d046
net: usb: hso: use swap macro in hso_kick_transmit

Make use of the swap macro and remove unnecessary variable *temp*.
This makes the code easier to read and maintain. Also, slightly
refactor some code due to the removal of *temp*.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c