From: Himangi Saraogi Date: Tue, 4 Mar 2014 23:29:57 +0000 (+0530) Subject: staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer X-Git-Tag: firefly_0821_release~3679^2~2443 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8012af5c10347fc926083534dab46327892c0804;p=firefly-linux-kernel-4.4.55.git staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer commit abe5d64d1a74195a44cd14624f8178b9f48b7cc7 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: Himangi Saraogi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c index 8a6e5ea476e1..380d9d707109 100644 --- a/drivers/staging/serqt_usb2/serqt_usb2.c +++ b/drivers/staging/serqt_usb2/serqt_usb2.c @@ -725,7 +725,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: