staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer
authorHimangi Saraogi <himangi774@gmail.com>
Tue, 4 Mar 2014 23:29:57 +0000 (04:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 23:21:58 +0000 (15:21 -0800)
This patch fixes the following sparse warning :
drivers/staging/serqt_usb2/serqt_usb2.c:727:40: warning: restricted __le16 degrades to integer

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/serqt_usb2/serqt_usb2.c

index f0fcbf7c7d7fd781b76215fc58bf41f533aac68a..868226953d5c3ddbebe0ee9d3ceecbed5dce20a9 100644 (file)
@@ -724,7 +724,7 @@ static int qt_startup(struct usb_serial *serial)
                goto startup_error;
        }
 
-       switch (serial->dev->descriptor.idProduct) {
+       switch (le16_to_cpu(serial->dev->descriptor.idProduct)) {
        case QUATECH_DSU100:
        case QUATECH_QSU100:
        case QUATECH_ESU100A: