can: kvaser_usb: Fix sparse warning __le16 degrades to integer
authorAhmed S. Darwish <ahmed.darwish@valeo.com>
Sun, 15 Mar 2015 15:10:49 +0000 (11:10 -0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 22 Mar 2015 17:14:50 +0000 (18:14 +0100)
commit7e184c28636dce594426cd7d8781d52d1dd447cd
tree5f15c918647b3a747ef75fc4958df18f61d8e34f
parent082d70b6142f623c10f7a032d9b63a2399fb4ded
can: kvaser_usb: Fix sparse warning __le16 degrades to integer

USB endpoint's wMaxPacketSize field is an le16 entity. Use
appropriate le16_to_cpu macros to maintain endian independence.

Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb.c