Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ch9200: add missing USB-descriptor endianness conversions

Add the missing endianness conversions to a debug statement printing
the USB device-descriptor idVendor and idProduct fields during probe.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Johan Hovold and committed by
David S. Miller
b12ca80c 75cf0679

+2 -2
+2 -2
drivers/net/usb/ch9200.c
··· 310 310 int rd_mac_len = 0; 311 311 312 312 netdev_dbg(dev->net, "get_mac_address:\n\tusbnet VID:%0x PID:%0x\n", 313 - dev->udev->descriptor.idVendor, 314 - dev->udev->descriptor.idProduct); 313 + le16_to_cpu(dev->udev->descriptor.idVendor), 314 + le16_to_cpu(dev->udev->descriptor.idProduct)); 315 315 316 316 memset(mac_addr, 0, sizeof(mac_addr)); 317 317 rd_mac_len = control_read(dev, REQUEST_READ, 0,