[3.8.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 Apr 17 23:29:57 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.8.y-queue branch of the 3.8.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.8.y-queue

This patch is scheduled to be released in version 3.8.13.22.

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.8.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Kamal

------

>From 2a54aca00381dd7bafe2fe1488d00dc0b8e12fc5 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
 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 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 1b3e995..72d6fc2 100644
--- a/drivers/staging/serqt_usb2/serqt_usb2.c
+++ b/drivers/staging/serqt_usb2/serqt_usb2.c
@@ -739,7 +739,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:
--
1.9.1





More information about the kernel-team mailing list