]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: ir-usb: fix big-endian baud-rate debug printk
authorJohan Hovold <johan@kernel.org>
Thu, 11 May 2017 09:41:19 +0000 (11:41 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 15 May 2017 09:50:34 +0000 (11:50 +0200)
commit0828340dfa5db161f431c4886da5f1fb64acf14f
tree40212b074753f4d3f8534d49b6b9ac47896645d1
parent6b23c77ecb7343d09ca53260c4d7b01f6053e4e5
USB: serial: ir-usb: fix big-endian baud-rate debug printk

Add missing endianness conversion when printing the supported baud
rates.

Found using sparse:

warning: restricted __le16 degrades to integer

Fixes: fe16abba8031 ("usb: irda: cleanup on ir-usb module")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ir-usb.c