Commit ee45c6d2 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Jiri Slaby

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 avatarJiri Slaby <jslaby@suse.cz>
parent 0c1da5ec
...@@ -725,7 +725,7 @@ static int qt_startup(struct usb_serial *serial) ...@@ -725,7 +725,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