Re: [PATCH 2/3] USB: serial: mct_u232: fix big-endian baud-rate handling

2017-05-11 Thread Pete Zaitcev
On Thu, 11 May 2017 11:41:20 +0200 Johan Hovold wrote: > Drop erroneous cpu_to_le32 when setting the baud rate, something which > corrupted the divisor on big-endian hosts. > +++ b/drivers/usb/serial/mct_u232.c > @@ -189,7 +189,7 @@ static int mct_u232_set_baud_rate(struct tty_struct *tty, >

[PATCH 2/3] USB: serial: mct_u232: fix big-endian baud-rate handling

2017-05-11 Thread Johan Hovold
Drop erroneous cpu_to_le32 when setting the baud rate, something which corrupted the divisor on big-endian hosts. Found using sparse: warning: incorrect type in argument 1 (different base types) expected unsigned int [unsigned] [usertype] val got restricted __le32