diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-03-05 04:59:57 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-06 07:55:28 -0700 |
commit | 8012af5c10347fc926083534dab46327892c0804 (patch) | |
tree | d2040d0005841bf2f83487355602369183030671 | |
parent | 1a8be0fe6d1f30cbad40c9ca1a5ef7c080f625a7 (diff) | |
download | linux-3.10-8012af5c10347fc926083534dab46327892c0804.tar.gz linux-3.10-8012af5c10347fc926083534dab46327892c0804.tar.bz2 linux-3.10-8012af5c10347fc926083534dab46327892c0804.zip |
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 <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/serqt_usb2/serqt_usb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c index 8a6e5ea476e..380d9d70710 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: |