Commit 725f2ba0 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Greg Kroah-Hartman

staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer

commit abe5d64d upstream.

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: default avatarHimangi Saraogi <himangi774@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6733ac58
...@@ -771,7 +771,7 @@ static int qt_startup(struct usb_serial *serial) ...@@ -771,7 +771,7 @@ static int qt_startup(struct usb_serial *serial)
goto startup_error; goto startup_error;
} }
switch (serial->dev->descriptor.idProduct) { switch (le16_to_cpu(serial->dev->descriptor.idProduct)) {
case QUATECH_DSU100: case QUATECH_DSU100:
case QUATECH_QSU100: case QUATECH_QSU100:
case QUATECH_ESU100A: case QUATECH_ESU100A:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment