[3.13.y.z extended stable] Patch "staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer" has been added to staging queue

Kamal Mostafa kamal at canonical.com
Thu May 1 19:17:11 UTC 2014

This is a note to let you know that I have just added a patch titled

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

to the linux-3.13.y-queue branch of the 3.13.y.z extended stable tree 
which can be found at:


This patch is scheduled to be released in version

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.13.y.z tree, see



>From 99825892ba0ad120a3b2a9da4173086e9202be30 Mon Sep 17 00:00:00 2001
From: Himangi Saraogi <himangi774 at gmail.com>
Date: Wed, 5 Mar 2014 04:59:57 +0530
Subject: staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to

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 at gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
 drivers/staging/serqt_usb2/serqt_usb2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c
index 73fc3cc..18d4856 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:

More information about the kernel-team mailing list