]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] opera1: fix sparse warnings
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 20 Aug 2014 19:50:21 +0000 (16:50 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 12:32:15 +0000 (09:32 -0300)
drivers/media/usb/dvb-usb/opera1.c:557:29: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/opera1.c:558:33: warning: restricted __le16 degrades to integer

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/dvb-usb/opera1.c

index 16ba90acf5396ff54395497e9180b5f883adfc37..14a2119912ba5246474c6b249a855f5815c34331 100644 (file)
@@ -554,8 +554,8 @@ static int opera1_probe(struct usb_interface *intf,
 {
        struct usb_device *udev = interface_to_usbdev(intf);
 
-       if (udev->descriptor.idProduct == USB_PID_OPERA1_WARM &&
-               udev->descriptor.idVendor == USB_VID_OPERA1 &&
+       if (le16_to_cpu(udev->descriptor.idProduct) == USB_PID_OPERA1_WARM &&
+           le16_to_cpu(udev->descriptor.idVendor) == USB_VID_OPERA1 &&
                opera1_xilinx_load_firmware(udev, "dvb-usb-opera1-fpga-01.fw") != 0
            ) {
                return -EINVAL;